Orchestrata Ultimate › Tests › Reference › scripts › test_ast_branches
Tests reference — tests/scripts/test_ast_branches.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_ast_branches.py
source · 18 tests · 725 lines
Tests for the AST tool's
branches,gen-tests,audit, and
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_branches_enumerates_decision_points |
66 | |
| function | test_branches_name_filter |
77 | |
| function | test_branches_match_case |
94 | Regression: ast.match_case carries no lineno of its own — the |
| function | test_gen_tests_are_runnable_and_pass |
140 | Generated branch tests are real: they import the function, drive each arm |
| function | test_gen_tests_method_instantiates_class |
157 | A method's tests instantiate its class and drive the branch. |
| function | test_gen_tests_raising_branch_uses_pytest_raises |
179 | A branch that raises is covered with pytest.raises, not a bare call |
| function | test_gen_tests_branchless_function_smoke_runs |
198 | |
| function | test_audit_flags_error_handling_smells |
212 | |
| function | test_audit_clean_file |
231 | |
| function | test_testgen_awaits_async_target |
314 | Template-defect fix (a) — THE fix. An async target's generated call |
| function | test_testgen_unresolved_type_gets_cast_and_matching_import |
346 | Template-defect fix (b) — an unresolved (project-defined) parameter |
| function | test_testgen_abstract_looking_mixin_gets_pyright_ignore |
394 | Template-defect fix (c) — a class whose bases resolve, under |
| function | test_testgen_invalid_dataclass_ctor_gets_pyright_ignore |
417 | Template-defect fix (d) — a deliberately-invalid constructor call |
| function | test_testgen_subcommand_wired_and_generates_passing_file |
432 | The testgen CLI subcommand is wired into |
| function | test_testgen_try_except_finally_and_assert_branches |
490 | branch.py's try/except/finally/assert/raise event handling, all in |
| function | test_testgen_structural_dataclass_enum_abstract_protocol |
558 | One module exercising every structural generator at once: two plain |
| function | test_testgen_structural_adapter_edge_cases |
600 | A second, narrower structural fixture aimed squarely at |
| function | test_testgen_branch_coverage_sweep |
695 | A single, wide fixture aimed at branch.py's remaining |