Orchestrata Ultimate › Tests › Reference › scripts › test_extract_reference_edges

Tests reference — tests/scripts/test_extract_reference_edges.py

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

Prose pending.

tests/scripts/test_extract_reference_edges.py

source · 15 tests · 359 lines

Tests for scripts/extract_reference_edges.py — the non-import reference

Kind Name Line Description
function test_subprocess_argv_literal_records_invoke 28
function test_module_level_path_constant_resolves 46 The HOOK_PATH pattern: REPO_ROOT / ".claude" / ... bound to a
function test_directory_div_pattern_records_prefix_target 69 (HOOKS_DIR / hook).read_text() with a loop-variable right side is a
function test_lowercase_fixture_base_records_nothing 93 Fixture parameters (tmp_path, lowercase repo_root) point at TEMP
function test_bdd_scenario_literal_records_feature 113
function test_consult_literal_records_prolog 132
function test_computed_paths_record_nothing_by_design 149 f-strings and variable joins are unresolvable statically — no edge,
function test_output_is_deterministic 164
function test_claude_basename_literal_in_test_file_records_reference 184 The measured 2026-08-14 defect shape: ``_HOOKS = Path(file)...
function test_claude_basename_literal_outside_tests_records_nothing 220 Restricted to TEST referrers — a claude/ file mentioning a SIBLING
function test_claude_basename_literal_ignores_unrelated_basename 237 A string literal that happens to match no claude/ basename records
function test_claude_basename_literal_outside_tests_claude_records_nothing 253 The DEFECT 2 fix: the basename-literal rule is scoped to
function test_claude_basename_literal_under_tests_claude_still_records 275 The same literal, from a tests/claude/ referrer, still mints the
function test_agent_worktrees_are_not_indexed_as_project_source 298 .claude/worktrees/agent-* holds CHECKOUTS OF THIS REPO at other commits.
function test_parallel_output_identical_to_serial 343 Thread-pool extraction is order-independent — serial and parallel