Orchestrata Ultimate › Tests › Reference › scripts › test_ast_check_traces
Tests reference — tests/scripts/test_ast_check_traces.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_ast_check_traces.py
source · 15 tests · 393 lines
Tests for the AST tool's
check-tracessubcommand: a requirement-
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_untraced_requirement_reported_traced_one_is_not |
59 | Two REQs defined in a spec checklist; only one is @traces-referenced |
| function | test_untraced_reports_defining_file_and_line |
80 | |
| function | test_dangling_trace_reported_with_file_and_line |
98 | |
| function | test_dangling_does_not_include_properly_traced_reqs |
124 | |
| function | test_malformed_empty_and_missing_reqs |
144 | |
| function | test_malformed_bad_shape_req_entry |
167 | |
| function | test_fully_consistent_tree_has_zero_findings |
190 | |
| function | test_max_ratchet_cli_exit_codes |
220 | --max N exits non-zero only when the TOTAL finding count EXCEEDS N |
| function | test_cli_prints_counts_summary |
263 | |
| function | test_extraction_finds_both_class_and_method_decorator |
291 | |
| function | test_extraction_ignores_non_traces_decorators |
310 | |
| function | test_extraction_finds_attribute_form_decorator |
327 | @some_module.traces(...) (attribute access, not a bare name) is |
| function | test_non_list_reqs_value_is_skipped_not_malformed |
345 | A reqs=(...) tuple (not a list literal) can't be statically |
| function | test_non_string_reqs_entry_is_skipped |
365 | A non-string entry in reqs=[...] (e.g. a stray int) is skipped |
| function | test_spec_requirements_skips_unreadable_file |
383 | A requirements.md that can't be decoded as UTF-8 is skipped rather |