story-kit: create 127_story_test_coverage_http_mod_rs
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
name: "Add test coverage for http/mod.rs (39% -> 70%+)"
|
||||||
|
---
|
||||||
|
|
||||||
|
# Story 127: Add test coverage for http/mod.rs
|
||||||
|
|
||||||
|
Currently at 39% line coverage (77 lines, 47 missed). This is the HTTP route setup and server initialization module.
|
||||||
|
|
||||||
|
## What to test
|
||||||
|
|
||||||
|
- Route registration (all expected paths are mounted)
|
||||||
|
- CORS configuration
|
||||||
|
- Static asset serving setup
|
||||||
|
- Server builder configuration
|
||||||
|
- Any middleware setup
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
- May need integration-style tests that start a test server and verify routes exist
|
||||||
|
- Or test the route builder functions in isolation
|
||||||
|
- Follow patterns from existing HTTP module tests
|
||||||
|
|
||||||
|
## Acceptance Criteria
|
||||||
|
|
||||||
|
- [ ] Line coverage for `http/mod.rs` reaches 70%+
|
||||||
|
- [ ] Tests pass with `cargo test`
|
||||||
|
- [ ] `cargo clippy` clean
|
||||||
Reference in New Issue
Block a user