Orchestrata Ultimate › Tests › Reference › scripts › test_code_intel

Tests reference — tests/scripts/test_code_intel.py

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

Prose pending.

tests/scripts/test_code_intel.py

source · 18 tests · 814 lines

Tests for scripts/code_intel.py -- the CLI + freshness wrapper over the

Kind Name Line Description
function test_build_parser_registers_every_documented_subcommand 187 The parser and the docstring name the same commands.
function test_reindex_then_stats_reuses_fresh_facts_and_both_output_modes 236
function test_missing_facts_file_auto_reindexes_with_stderr_note 276
function test_stale_facts_mtime_triggers_second_reindex 298
function test_no_reindex_flag_skips_and_reports_not_loaded 326
function test_prefix_normalization_accepts_with_and_without_prefix 348
function test_unknown_symbol_and_module_fall_back_to_find_symbol_suggestions 406
function test_cycles_unused_and_dep_path_shapes 443
function test_main_dispatches_reindex_and_query_with_correct_exit_codes 490
function test_main_reports_runtime_error_from_missing_snapshot 517 No facts file AND no AST snapshot on disk -- _ensure_fresh's
function test_print_human_formats_every_value_shape 539
function test_emit_json_vs_human 566
function test_trace_path_static_only_misses_di_edge_merged_finds_it 643
function test_trace_path_unknown_endpoint_falls_back_to_suggestions 701
function test_trace_path_same_endpoint_is_a_zero_hop_path 721
function test_callers_callees_runtime_flag_includes_merged_edges_default_excludes 742
function test_impact_accepts_several_qnames_in_one_invocation 788 The whole reason module_context no longer caps its blast radius.
function test_impact_with_one_qname_keeps_the_single_object_shape 804 Every existing caller and parsed script must be unaffected.