Expand benchmark runner mock coverage for Google Drive wrappers#19197
Expand benchmark runner mock coverage for Google Drive wrappers#19197Copilot wants to merge 3 commits into
Conversation
✅ Deploy Preview for kubestellarconsole canceled.
|
|
👋 Hey @Copilot — thanks for opening this PR!
This is an automated message. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits. 📝 Please follow instructions in the contributing guide to update your commits with the DCO Full details of the Developer Certificate of Origin can be found at developercertificate.org. The list of commits missing DCO signoff:
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
📝 Summary of Changes
benchmarks_runner.gowrappers had critical paths without direct mock-server coverage, especially around Drive request behavior and report fan-out logic. This PR adds focusedhttptest-based coverage for those paths inbenchmarks_runner_mock_test.gowithout changing production code.maxBenchmarkReportBytes + 1and assert size rejection.Changes Made
/home/runner/work/console/console/pkg/api/handlers/benchmarks/benchmarks_runner_mock_test.gowith comprehensive Drive wrapper mock coveragedriveGetandfetchAllReportsedge/error/cancellation pathsChecklist
Please ensure the following before submitting your PR:
git commit -s)Screenshots or Logs (if applicable)
N/A (test-only change in Go benchmark handler package).
👀 Reviewer Notes
benchmarks_runner_mock_test.go.Original prompt