Orchestrata Ultimate › Tests › Reference › claude › test_project_context_refresh_coverage

Tests reference — tests/claude/test_project_context_refresh_coverage.py

Module of tests/claude, split out because the directory page would be too large.

Prose pending.

tests/claude/test_project_context_refresh_coverage.py

source · 25 tests · 319 lines

In-process coverage tests for claude/hooks/project_context_refresh.py.

Kind Name Line Description
function test_slug_sanitizes_path 59
function test_git_returns_output_in_repo_and_empty_elsewhere 63
function test_find_root_via_git 72
function test_find_root_via_pyproject 80
function test_find_root_returns_none_without_markers 88
function test_source_files_collects_first_party_only 92
function test_symbols_of_parses_shape 119
function test_symbols_of_syntax_error_returns_empty 128
function test_symbols_of_missing_file_returns_empty 135
function test_inline_class_map_empty 144
function test_inline_class_map_splits_source_and_test 148
function test_inline_class_map_census_when_over_budget 160
function test_state_roundtrip 173
function test_load_state_corrupt_is_empty 181
function test_map_freshness_no_artifact 190
function test_map_freshness_current 196
function test_map_freshness_stale 208
function test_spawn_background_no_steps_is_noop 225
function test_spawn_background_runs_gen_script 231
function test_build_report_first_run 250
function test_build_report_unchanged 258
function test_build_report_delta 265
function test_build_report_deleted 274
function test_main_prints_report_for_a_repo 288
function test_main_returns_zero_when_no_root 308