From 85451ff06ed2171f11cf58525ad030007520c69d Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 23 Feb 2026 23:43:21 +0000 Subject: [PATCH] story-kit: create 123_story_test_coverage_llm_providers_anthropic_rs --- ...est_coverage_llm_providers_anthropic_rs.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .story_kit/work/1_upcoming/123_story_test_coverage_llm_providers_anthropic_rs.md diff --git a/.story_kit/work/1_upcoming/123_story_test_coverage_llm_providers_anthropic_rs.md b/.story_kit/work/1_upcoming/123_story_test_coverage_llm_providers_anthropic_rs.md new file mode 100644 index 0000000..badd16d --- /dev/null +++ b/.story_kit/work/1_upcoming/123_story_test_coverage_llm_providers_anthropic_rs.md @@ -0,0 +1,27 @@ +--- +name: "Add test coverage for llm/providers/anthropic.rs (0% -> 50%+)" +--- + +# Story 123: Add test coverage for llm/providers/anthropic.rs + +Currently at 0% line coverage (204 lines). The Anthropic provider handles API communication for Claude models. + +## What to test + +- Request construction (headers, body format, model selection) +- Response parsing (streaming chunks, tool use responses, error responses) +- API key validation +- Rate limit / error handling +- Message format conversion (internal Message -> Anthropic API format) + +## Notes + +- Mock HTTP responses rather than calling the real Anthropic API +- Use `mockito` or similar for HTTP mocking, or test the pure functions directly +- Focus on serialization/deserialization and error paths + +## Acceptance Criteria + +- [ ] Line coverage for `llm/providers/anthropic.rs` reaches 50%+ +- [ ] Tests pass with `cargo test` +- [ ] `cargo clippy` clean