Orchestrata Ultimate › Tests › Reference › scripts › test_build_runtime_callgraph

Tests reference — tests/scripts/test_build_runtime_callgraph.py

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

Prose pending.

tests/scripts/test_build_runtime_callgraph.py

source · 31 tests · 793 lines

Tests for scripts/build_runtime_callgraph.py -- the SPEC-023 runtime

Kind Name Line Description
function test_read_edges_dedups_drops_scaffolding_and_normalizes_module_callers 85
function test_read_edges_empty_dir_yields_no_edges 119
function test_collect_ast_nodes_covers_modules_functions_classes_methods 132
function test_partition_edges_splits_resolved_from_unresolved 152
function test_di_dispatch_edges_excludes_callees_present_verbatim_in_raw_calls 173
function test_di_dispatch_edges_excludes_a_verbatim_qualified_match 189
function test_di_dispatch_edges_unknown_caller_counts_as_missed 200
function test_augment_ast_sets_runtime_calls_including_empty_for_untouched 210
function test_augment_ast_recomputes_from_scratch_each_call 226
function test_augment_ast_dedups_and_sorts_multiple_callees 240
function test_node_coverage_percentage 262
function test_node_coverage_empty_index_is_zero 270
function test_build_writes_deterministic_json_augments_ast_and_writes_report 280
function test_build_is_idempotent_on_repeat_invocation 349
function test_cli_build_subcommand_runs_end_to_end 369
function test_cli_build_missing_edges_dir_exits_nonzero 407
function test_cli_build_missing_ast_exits_nonzero 428
function test_cli_no_subcommand_prints_help_and_exits_nonzero 449
function test_read_edges_skips_blank_lines 459
function test_build_parser_requires_edges_dir_and_defaults_the_rest 477
function test_cmd_build_end_to_end_and_error_paths 487
function test_main_dispatches_build_and_exits_zero 532
function test_main_requires_a_subcommand_argparse_level 563 build/reaugment are the only registered subcommands and the
function test_reaugment_applies_edges_from_runtime_callgraph_json 585
function test_reaugment_round_trips_byte_identical_after_build 625 build() writes runtime_calls onto a fresh AST; stripping runtime_calls
function test_reaugment_missing_from_file_errors 665
function test_reaugment_missing_ast_errors 684
function test_reaugment_edge_with_unknown_caller_is_ignored_gracefully 703
function test_cli_reaugment_subcommand_runs_end_to_end 738
function test_reaugment_parser_defaults 768
function test_main_dispatches_reaugment_and_exits_zero 776