diff --git a/.story_kit/work/1_upcoming/125_story_test_coverage_http_io_rs.md b/.story_kit/work/1_upcoming/125_story_test_coverage_http_io_rs.md new file mode 100644 index 0000000..9c30078 --- /dev/null +++ b/.story_kit/work/1_upcoming/125_story_test_coverage_http_io_rs.md @@ -0,0 +1,26 @@ +--- +name: "Add test coverage for http/io.rs (0% -> 60%+)" +--- + +# Story 125: Add test coverage for http/io.rs + +Currently at 0% line coverage (76 lines). These are the IO-related HTTP endpoints (absolute path listing, directory creation, home directory). + +## What to test + +- `list_directory_absolute` endpoint — valid path, invalid path, permission errors +- `create_directory_absolute` endpoint — new dir, existing dir, nested creation +- `get_home_directory` endpoint — returns correct home path +- Error responses for invalid inputs + +## Notes + +- Use temp directories for filesystem tests +- These are straightforward CRUD-style endpoints, should be quick to cover +- Follow the test patterns used in `http/project.rs` and `http/settings.rs` + +## Acceptance Criteria + +- [ ] Line coverage for `http/io.rs` reaches 60%+ +- [ ] Tests pass with `cargo test` +- [ ] `cargo clippy` clean