wiki: add test_ai_pure.py to test coverage table (#55)
parent
08f2d9865d
commit
0a33ec6bd2
1 changed files with 4 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ The test suite uses stdlib `unittest` only.
|
||||||
|
|
||||||
### Test coverage
|
### Test coverage
|
||||||
|
|
||||||
Tests live in `tests/`, one file per module:
|
Tests live in `tests/`, one file per module (ai.py has its own pure-helper file):
|
||||||
|
|
||||||
| Test file | Module covered |
|
| Test file | Module covered |
|
||||||
|---|---|
|
|---|---|
|
||||||
|
|
@ -117,12 +117,13 @@ Tests live in `tests/`, one file per module:
|
||||||
| `test_recency.py` | `recency.py` — recent file detection, output parsing |
|
| `test_recency.py` | `recency.py` — recent file detection, output parsing |
|
||||||
| `test_tree.py` | `tree.py` — tree building, rendering, hidden/exclude logic |
|
| `test_tree.py` | `tree.py` — tree building, rendering, hidden/exclude logic |
|
||||||
| `test_report.py` | `report.py` — `format_flags`, `format_report`, all sections |
|
| `test_report.py` | `report.py` — `format_flags`, `format_report`, all sections |
|
||||||
|
| `test_ai_pure.py` | `ai.py` (pure helpers) — `_filter_dir_tools`, `_format_survey_block`, `_format_survey_signals`, `_default_survey`, `_should_skip_dir`, `_path_is_safe`, `_block_to_dict`, `_flush_partial_dir_entry` |
|
||||||
|
|
||||||
Modules **not covered** (exempt from unit testing):
|
Modules **not covered** (exempt from unit testing):
|
||||||
|
|
||||||
| Module | Reason |
|
| Module | Reason |
|
||||||
|---|---|
|
|---|---|
|
||||||
| `ai.py` | Requires live Anthropic API |
|
| `ai.py` (loops) | End-to-end dir/synthesis/survey loops require a live Anthropic API. Pure helpers in `ai.py` are covered by `test_ai_pure.py`. |
|
||||||
| `ast_parser.py` | Imports tree-sitter grammars at module load |
|
| `ast_parser.py` | Imports tree-sitter grammars at module load |
|
||||||
| `prompts.py` | String templates with no logic |
|
| `prompts.py` | String templates with no logic |
|
||||||
|
|
||||||
|
|
@ -175,6 +176,7 @@ luminos/
|
||||||
│ ├── report.py terminal report formatter
|
│ ├── report.py terminal report formatter
|
||||||
│ └── tree.py directory tree
|
│ └── tree.py directory tree
|
||||||
├── tests/
|
├── tests/
|
||||||
|
│ ├── test_ai_pure.py
|
||||||
│ ├── test_cache.py
|
│ ├── test_cache.py
|
||||||
│ ├── test_code.py
|
│ ├── test_code.py
|
||||||
│ ├── test_disk.py
|
│ ├── test_disk.py
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue