#72
test(go-sdk): expand test coverage
Expands sdk/go/classifier_test.go from 4 tests to 12:
- Input validation: empty/nil inputs, too few labels, empty labels slice
- Multi-label happy path: multi=true on the wire, labels array in response
- User-Agent header: verifies
classifier-dev-go/0.1.0 - API key header: Authorization: Bearer reaches the server
- Result count mismatch: 1 result for 2 inputs → error
- Cancelled context: pre-cancelled ctx never reaches the server
- Options on the wire: tier, instructions, multi, max_labels all serialized
All tests use httptest.NewServer — no network calls.
🤖 Generated with Claude Code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.