From 64222c5fefab648f71c4392664cd39f8276519ff Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 23 Feb 2026 23:43:36 +0000 Subject: [PATCH] story-kit: create 126_story_test_coverage_http_anthropic_rs --- ...6_story_test_coverage_http_anthropic_rs.md | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .story_kit/work/1_upcoming/126_story_test_coverage_http_anthropic_rs.md diff --git a/.story_kit/work/1_upcoming/126_story_test_coverage_http_anthropic_rs.md b/.story_kit/work/1_upcoming/126_story_test_coverage_http_anthropic_rs.md new file mode 100644 index 0000000..be9885d --- /dev/null +++ b/.story_kit/work/1_upcoming/126_story_test_coverage_http_anthropic_rs.md @@ -0,0 +1,26 @@ +--- +name: "Add test coverage for http/anthropic.rs (0% -> 60%+)" +--- + +# Story 126: Add test coverage for http/anthropic.rs + +Currently at 0% line coverage (66 lines). These are the Anthropic-related HTTP endpoints (key exists check, models list, set API key). + +## What to test + +- `get_anthropic_api_key_exists` — returns true/false based on stored key +- `get_anthropic_models` — returns model list +- `set_anthropic_api_key` — stores key, validates format +- Error handling for missing/invalid keys + +## Notes + +- Follow the test patterns in `http/settings.rs` and `http/model.rs` +- Small file, should be quick to get good coverage +- Mock any external API calls + +## Acceptance Criteria + +- [ ] Line coverage for `http/anthropic.rs` reaches 60%+ +- [ ] Tests pass with `cargo test` +- [ ] `cargo clippy` clean