-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
core-moduleCore module functionalityCore module functionalitygood-first-issueGood for newcomersGood for newcomerspriority-highHigh priorityHigh prioritytest-coverageTest coverage improvementsTest coverage improvementstestingTesting and test coverage relatedTesting and test coverage related
Description
Module Information
- File:
claude_ctx_py/core/base.py - Current Coverage: 0% (no tests)
- Target Coverage: 80%+
- Priority: 🔴 High (core functionality)
Functions Needing Tests
-
_resolve_claude_dir()- Claude directory resolution -
_iter_all_files()- File iteration logic -
_agent_basename()- Agent name extraction -
_is_disabled()- Disabled agent detection -
_extract_agent_name()- Name extraction from content -
_read_agent_front_matter_lines()- YAML front matter parsing -
_parse_dependencies_from_front()- Dependency extraction -
_tokenize_front_matter()- Front matter tokenization -
_extract_scalar_from_paths()- Scalar value extraction
Test Areas
- ✅ Path resolution (macOS, Linux, Windows)
- ✅ File iteration with filters
- ✅ Agent naming conventions
- ✅ Front matter parsing (valid, invalid, edge cases)
- ✅ Dependency resolution
- ✅ Error handling
Acceptance Criteria
-
tests/unit/test_core_base.pycreated - 80%+ coverage achieved
- All edge cases tested
- Tests pass in CI/CD
Resources
- Reference:
tests/unit/test_mcp.pyfor testing patterns - pytest documentation
Metadata
Metadata
Assignees
Labels
core-moduleCore module functionalityCore module functionalitygood-first-issueGood for newcomersGood for newcomerspriority-highHigh priorityHigh prioritytest-coverageTest coverage improvementsTest coverage improvementstestingTesting and test coverage relatedTesting and test coverage related