Orchestrata Ultimate › Tests › Reference › core › tracing
Tests reference — tests/core/tracing
tests/core/tracing — 4 test modules, 67 test functions. Source tree: tests/core/tracing at commit 8a2cb42ad. Generated from the tests AST snapshot by scripts/gen-data-pages.py.
Prose pending.
Modules
| Module | Tests | Covers |
|---|---|---|
test_runtime_callgraph.py |
17 | 1 |
test_scanner.py |
26 | 1 |
test_scanner_corpus.py |
9 | 2 |
test_tracer.py |
15 | 1 |
Module details
tests/core/tracing/test_runtime_callgraph.py
source · 17 tests · 302 lines
Tests for core.tracing.runtime_callgraph (the PEP 669 pytest plugin).
Covers: core.tracing.runtime_callgraph
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_is_first_party_true_for_package_path |
107 | |
| function | test_is_first_party_false_for_external_path |
112 | |
| function | test_module_of_regular_module |
120 | |
| function | test_module_of_package_init_drops_trailing_init |
124 | |
| function | test_qname_matches_ast_convention |
131 | |
| function | test_on_call_builtin_callee_disables_without_edge |
139 | |
| function | test_on_call_non_first_party_callee_disables_without_edge |
146 | |
| function | test_on_call_non_first_party_caller_disables_without_edge |
156 | |
| function | test_on_call_first_party_pair_records_edge_and_disables |
166 | |
| function | test_on_call_dedupes_repeated_pair |
182 | |
| function | test_configure_stays_dormant_without_env |
198 | |
| function | test_configure_active_claims_free_tool_id |
206 | |
| function | test_configure_gives_up_when_no_tool_id_free |
219 | |
| function | test_sessionfinish_dormant_writes_nothing |
238 | |
| function | test_sessionfinish_without_out_dir_keeps_tool_registered |
244 | |
| function | test_sessionfinish_writes_edges_jsonl |
257 | |
| function | test_sessionfinish_skips_self_recursion_and_unresolvable_ids |
283 |
tests/core/tracing/test_scanner.py
source · 26 tests · 256 lines
Tests for core.tracing.scanner.
Covers: core.tracing.scanner
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestExtractStringValue |
42 | |
| method | TestExtractStringValue.test_constant_string |
43 | |
| method | TestExtractStringValue.test_non_string |
47 | |
| method | TestExtractStringValue.test_non_constant |
51 | |
| class | TestExtractListValues |
56 | |
| method | TestExtractListValues.test_string_list |
57 | |
| method | TestExtractListValues.test_mixed_list_skips_non_strings |
61 | |
| method | TestExtractListValues.test_non_list |
65 | |
| class | TestExtractTracesFromDecorator |
70 | |
| method | TestExtractTracesFromDecorator.test_traces_decorator |
71 | |
| method | TestExtractTracesFromDecorator.test_no_reqs_returns_none |
83 | |
| method | TestExtractTracesFromDecorator.test_non_traces_call_decorator |
93 | |
| class | TestFilePathToModule |
104 | |
| method | TestFilePathToModule.test_simple |
105 | |
| method | TestFilePathToModule.test_single_file |
108 | |
| method | TestFilePathToModule.test_outside_root |
111 | |
| class | TestIsMethod |
116 | |
| method | TestIsMethod.test_method |
117 | |
| method | TestIsMethod.test_top_level_function |
126 | |
| class | TestScanFunction |
133 | |
| method | TestScanFunction.test_function_with_traces |
134 | |
| method | TestScanFunction.test_inherits_class_trace_when_empty |
146 | |
| method | TestScanFunction.test_no_decorator |
161 | |
| class | TestScanClass |
169 | |
| method | TestScanClass.test_class_with_traces |
170 | |
| method | TestScanClass.test_class_with_method |
183 | |
| method | TestScanClass.test_no_traces |
196 | |
| class | TestScanModuleNodes |
204 | |
| method | TestScanModuleNodes.test_module_with_function |
205 | |
| method | TestScanModuleNodes.test_module_with_class |
214 | |
| class | TestCollectTraces |
226 | |
| method | TestCollectTraces.test_not_a_directory |
227 | |
| method | TestCollectTraces.test_finds_traces_in_directory |
231 | |
| method | TestCollectTraces.test_skips_pycache |
242 | |
| method | TestCollectTraces.test_skips_syntax_errors |
252 |
tests/core/tracing/test_scanner_corpus.py
source · 9 tests · 178 lines
Tests for the shared parse in core.tracing.scanner (WI-FLOSS, tasks 578/581).
Covers: core.tracing.scanner, core.tracing.tracer
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_collect_from_equals_collect_traces |
65 | |
| function | test_each_module_is_consulted_once |
77 | |
| function | test_unparsable_module_is_absent |
90 | |
| function | test_requirement_mention_filter_skips_modules_without_req |
95 | |
| function | test_parsed_module_carries_text_tree_and_name |
104 | |
| function | test_accept_all_filter_accepts |
114 | |
| function | test_non_directory_raises |
118 | |
| function | test_scan_module_nodes_matches_per_function_is_method_semantics |
151 | The one-pass method set must agree with _is_method on every function. |
| function | test_injected_enabled_tracer_is_used |
175 |
tests/core/tracing/test_tracer.py
source · 15 tests · 138 lines
Tests for orchestrata_ultimate.core.tracing.tracer — Tracer + TraceConfig.
Covers: core.tracing.tracer
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestTraceConfig |
24 | |
| method | TestTraceConfig.test_defaults_disabled |
25 | |
| method | TestTraceConfig.test_from_env_defaults_when_unset |
30 | |
| method | TestTraceConfig.test_from_env_enabled_truthy_values |
35 | |
| method | TestTraceConfig.test_from_env_disabled_falsy_values |
40 | |
| method | TestTraceConfig.test_from_env_numeric_level |
45 | |
| method | TestTraceConfig.test_from_env_named_level |
51 | |
| method | TestTraceConfig.test_from_env_invalid_named_level_falls_back_to_debug |
57 | |
| method | TestTraceConfig.test_from_env_uses_real_os_environ_when_no_mapping_given |
66 | |
| method | TestTraceConfig.test_is_frozen |
84 | |
| class | TestTracer |
94 | |
| method | TestTracer.test_disabled_span_is_noop_and_body_runs |
95 | |
| method | TestTracer.test_enabled_span_logs_start_and_end |
103 | |
| method | TestTracer.test_span_propagates_exceptions |
112 | |
| method | TestTracer.test_default_is_a_singleton |
122 | |
| method | TestTracer.test_default_binds_to_env_config |
129 | |
| method | TestTracer.test_custom_config_used_when_given |
135 |