Orchestrata Ultimate › Tests › Reference › scripts › test_extract_reference_edges_coverage
Tests reference — tests/scripts/test_extract_reference_edges_coverage.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_extract_reference_edges_coverage.py
source · 22 tests · 446 lines
Branch-coverage tests for scripts/extract_reference_edges.py.
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_argv_dot_slash_literal_is_normalized |
45 | ./hooks/x.sh strips the leading ./ — the one place |
| function | test_argv_non_repo_literals_record_nothing |
60 | URLs, absolute paths, ${...} expansions and slash-less names are |
| function | test_argv_tuple_and_direct_name_constant |
79 | Argv as a tuple literal, and a path constant used DIRECTLY (no |
| function | test_argv_string_form_records_nothing |
99 | subprocess.run("bash x.sh", shell=True) — the argv node is not a |
| function | test_joinpath_constant_resolves |
117 | REPO_ROOT.joinpath(...) chains resolve like / chains. |
| function | test_unresolvable_path_expressions_record_nothing |
136 | Every _path_segments bail-out arm in one module: joinpath on an |
| function | test_str_unwrap_inside_path_constant |
163 | str(<path expr>) assigned to a module-level constant is unwrapped |
| function | test_annassign_without_value_is_skipped |
184 | A bare module-level annotation (X: Path) has no value to resolve; |
| function | test_path_constant_chained_through_another_constant |
205 | A constant rooted in ANOTHER module-level constant resolves via the |
| function | test_bdd_scenario_with_path_constant |
229 | |
| function | test_consult_with_path_constant |
248 | |
| function | test_read_open_name_constant |
268 | |
| function | test_read_open_literal |
285 | |
| function | test_read_open_div_with_constant_right |
299 | open(HOOKS_DIR / "x.sh") — a fully static Div resolves to the |
| function | test_read_open_div_without_suffix_records_nothing |
318 | A fully static Div whose joined path has no artifact suffix is not a |
| function | test_read_open_unresolvable_args_record_nothing |
335 | open(name) with an unknown variable (not a Div at all) and |
| function | test_read_text_method_on_path_constant |
354 | HOOK_PATH.read_text() — the path expression sits under |
| function | test_syntax_error_file_is_skipped |
376 | One unparseable file costs its own edges only — sibling files still |
| function | test_pathological_nesting_is_contained |
392 | A file whose AST nests past the visitor's recursion budget is dropped |
| function | test_missing_source_root_is_skipped |
416 | |
| function | test_main_writes_json_map |
423 | End-to-end against the REAL repo: main pins repo_root to this |
| function | test_main_requires_output_flag |
444 |