Repository navigation
test(cli): cover the host-mediated refusal for reviewProviderAdapterFor(pi) - #4156
Clowraider wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe PR adds table-driven tests for reviewer provider adapter selection. The tests cover compiled adapters, host-mediated refusal errors, unsupported runtimes, and missing transport capability validation. ChangesReview provider adapter coverage
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to The new tests cover the requested Pi reviewer-task instruction; no actionable merge risk remains. Pre-merge checks |
|
c5da5fd to
f182ea2
Compare
2d3f283 to
c8941de
Compare
|
Rebased cleanly onto upstream/main (v4.0.0). All pre-merge checks and formatting pass. Could a maintainer please apply the |
🔗 Linked Issue
Closes #3258
🏷️ PR Type
What kind of change does this PR introduce?
type:bug— Bug fix (non-breaking change that fixes an issue)type:feature— New feature (non-breaking change that adds functionality)type:docs— Documentation onlytype:refactor— Code refactoring (no functional changes)type:chore— Build, CI, or tooling changestype:breaking-change— Breaking change (fix or feature that changes existing behavior)📝 Summary
Adds table-driven unit test coverage for
reviewProviderAdapterForininternal/cli/review_provider_test.go, covering:Addresses the missing coverage for Pi's host-mediated refusal branch noted in #3258 and follows the contributor scope clarification.
📂 Changes
internal/cli/review_provider_test.goTestReviewProviderAdapterForcovering runtime selection and refusals🤖 AI Assistance
Select exactly one option. Do not check both options.
Tool/model (if known): OpenCode
Material scope: Test code generation and validation against issue requirements.
Verification performed: Executed
go test -v -run TestReviewProviderAdapterFor ./internal/cliandgo run ./internal/gofmtcheck.🧪 Test Plan
Unit Tests
go test -v -run TestReviewProviderAdapterFor ./internal/cliGo Format
Benchmark Validation
N/A — test-only addition covering adapter selection boundary.
go test ./...)go run ./internal/gofmtcheck)cd e2e && ./docker-test.sh)✅ Contributor Checklist
status:approvedsize:exceptionwith rationale documentedtype:*label to this PRgo test ./...)go run ./internal/gofmtcheck)cd e2e && ./docker-test.sh)Co-Authored-BytrailersSummary by CodeRabbit