Orchestrata Ultimate › Tests › Reference › scripts › test_ast_source
Tests reference — tests/scripts/test_ast_source.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_ast_source.py
source · 34 tests · 1079 lines
Tests for the
sourcesubcommand of the AST tool
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_resolve_source_decorated_function_byte_identity |
236 | |
| function | test_source_cli_decorated_function_byte_identity |
252 | |
| function | test_resolve_source_decorated_method_byte_identity |
271 | |
| function | test_resolve_source_whole_class_byte_identity |
295 | |
| function | test_resolve_source_module_whole_file_byte_identity |
315 | |
| function | test_source_cli_module_whole_file_byte_identity |
328 | |
| function | test_source_residue_correctness |
345 | |
| function | test_source_residue_only_valid_for_module |
367 | |
| function | test_source_ambiguous_bare_name_exit_2_lists_candidates |
390 | |
| function | test_resolve_source_ambiguous_returns_sorted_candidates |
406 | |
| function | test_source_missing_symbol_exit_1 |
423 | |
| function | test_resolve_source_missing_symbol_status |
433 | |
| function | test_source_cli_json_shape |
445 | |
| function | test_resolve_source_qualified_wins_over_would_be_ambiguous_bare |
468 | Two modules each define a class Widget with a render method — |
| function | test_resolve_source_bare_name_unique_match |
495 | |
| function | test_resolve_source_bare_module_last_segment_match |
504 | A bare name with no dots that matches no symbol, only a module's |
| function | test_dotted_module_name_strips_init |
515 | pkg2/__init__.py is module pkg2, not pkg2.__init__. |
| function | test_pick_module_root_skips_non_matching_roots |
527 | Two independent (non-nested) --source roots: resolving a symbol that |
| function | test_source_warm_vs_cold_byte_identical_decorated_function |
556 | |
| function | test_source_warm_vs_cold_byte_identical_method_in_class |
572 | |
| function | test_source_warm_vs_cold_byte_identical_whole_module |
594 | |
| function | test_source_warm_vs_cold_byte_identical_residue |
608 | |
| function | test_source_warm_vs_cold_identical_residue_invalid_on_non_module |
623 | |
| function | test_source_warm_vs_cold_identical_ambiguous |
642 | |
| function | test_source_warm_vs_cold_identical_not_found |
659 | |
| function | test_source_served_warm_increments_daemon_query_counter |
672 | Proves the warm answer actually round-tripped through the daemon |
| function | test_source_no_daemon_flag_never_reaches_daemon |
691 | |
| function | test_extract_symbol_nodes_statement_walk_matches_full_walk_on_every_construct |
728 | One fixture module covering every statement-list position that can |
| function | test_resolve_source_sees_an_edit_in_the_same_process |
937 | The rows cache is keyed by tree IDENTITY: an on-disk edit re-parses |
| function | test_resolve_source_drops_a_deleted_function_and_finds_a_new_one |
967 | |
| function | test_resolve_source_repeated_calls_are_identical |
987 | |
| function | test_pick_module_root_is_component_wise |
1002 | The nesting test compares whole path components: <tmp>/src is not |
| function | test_daemon_source_sees_a_file_edit |
1024 | End-to-end freshness: after an edit, the watcher pops the parse cache |
| function | test_daemon_query_timeout_outlasts_a_cold_source_query |
1070 | Measured 2026-10-11: warm daemon source queries took 5-14s each |