Orchestrata Ultimate › Tests › Reference › test_orchestrata_ast_argv_literals

Tests reference — tests/test_orchestrata_ast_argv_literals.py

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

Prose pending.

tests/test_orchestrata_ast_argv_literals.py

source · 15 tests · 468 lines

Tests for AST-snapshot argv-literal capture at process-spawn sites.

Kind Name Line Description
function test_argv_list_first_positional_is_captured 63 Spec §6.1 — the canonical shape: a literal list straight into the call.
function test_tuple_literal_and_keyword_command_are_captured 74 Spec §6.2 — a Tuple head, and the keyword slot used when a call takes
function test_wrapper_callees_are_recorded_with_their_dotted_text 90 Spec §6.3 — a project wrapper is a spawn no fixed callee list can name,
function test_named_command_list_is_captured_at_the_assignment_line 114 Spec §6.4 — the record sits at the ASSIGNMENT (where a fix edits), and
function test_named_form_stops_at_scope_boundaries 138 Spec §6.5 — a nested function is a scope of its own: an assignment in
function test_binop_add_head_is_captured_from_its_left_list 166 Spec §6.6 — ["python"] + extra: the head is a fact, the runtime
function test_computed_heads_and_unconsumed_lists_are_not_captured 186 Spec §6.7 — a head that is not a str Constant is skipped, not guessed;
function test_exec_form_records_the_program_at_its_api_position 211 Spec §6.8 — create_subprocess_exec and os.execvp take the program as
function test_shell_form_records_the_first_token_of_the_command_string 244 Spec §6.9 — the program is the first whitespace-separated token; an
function test_programs_are_recorded_verbatim_without_classification 275 Spec §6.10 — absolute paths, non-toolchain heads and non-spawning
function test_records_are_sorted_and_repeat_analysis_is_identical 300 Spec §6.11 — the snapshot is committed; unstable ordering creates
function test_argv_literals_survive_serialize_and_back_as_objects 318 Spec §6.12 — the snapshot is written as JSON and read back; a field
function test_analyze_reports_the_capture_set 334 Spec §6.13 — every CodebaseAST the analyzer produces declares the
function test_stale_captures_identity_forces_a_full_reparse 378 Spec §6.14 — a cache whose declared captures are short of the
function test_derive_subtree_carries_captures_from_the_source_snapshot 431 Spec §6.15 — the projection reports what the SOURCE snapshot captured,