Add unit test coverage for existing modules #37
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add
tests/directory withunittest-based coverage for all testable existing modules. No new dependencies — uses stdlibunittestandunittest.mock.Modules covered:
cache.py— write/read/validate entries, confidence field validation, investigation IDfiletypes.py— extension classification,summarize_categories,classify_filescode.py—detect_languages,find_large_files(subprocess mocked)disk.py—_human_size,top_directories,get_disk_usage(subprocess mocked)recency.py—find_recent_files(subprocess mocked)tree.py—build_tree,render_tree,_human_sizereport.py—format_flags,format_reportcapabilities.py—_check_packageSkipped (not unit-testable without heavy deps or live services):
ai.py— requires Anthropic APIast_parser.py— requires tree-sitterwatch.py— stateful filesystem eventsprompts.py— string templates onlyAlso: update
CLAUDE.mddevelopment workflow to require test coverage for all changes.