Skip to content

Test Coverage: core/base.py #1

@NickCrew

Description

@NickCrew

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.py created
  • 80%+ coverage achieved
  • All edge cases tested
  • Tests pass in CI/CD

Resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions