Orchestrata Ultimate › Tests › Reference › test_orchestrata_tools_testgen_branch_coverage
Tests reference — tests/test_orchestrata_tools_testgen_branch_coverage.py
Module of tests, split out because the directory page would be too large.
Prose pending.
tests/test_orchestrata_tools_testgen_branch_coverage.py
source · 31 tests · 549 lines
Direct unit tests for
orchestrata_tools.test_generator.testgen.branch—
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_gen_branch_tests_no_branch_events_returns_empty |
64 | A function with no if/raise/try/assert produces no class at all. |
| function | test_gen_branch_tests_if_event_emits_true_and_false_tests |
70 | |
| function | test_gen_branch_tests_if_else_descent_collects_else_branch |
88 | Events inside an else block are collected too. |
| function | test_gen_branch_tests_raise_event_with_literal_message |
102 | |
| function | test_gen_branch_tests_raise_event_dotted_exception |
115 | A dotted exception name (pkg.errors.BadThing) is reduced to the |
| function | test_gen_branch_tests_try_handler_reraises_and_finally |
129 | |
| function | test_gen_branch_tests_try_bare_except_suppresses |
148 | |
| function | test_gen_branch_tests_try_handler_reraises_same_type_is_suppression |
162 | Re-raising the caught type is not reported as a re-raise, so the |
| function | test_gen_branch_tests_try_handler_bare_raise_ignored |
178 | A bare raise (no exc node) inside a handler is not a re-raise. |
| function | test_gen_branch_tests_assert_event_emits_pass_and_violation |
192 | |
| function | test_gen_branch_tests_async_function_emits_asyncio_test |
206 | |
| function | test_gen_branch_tests_duplicate_event_names_deduplicated |
220 | Two events on the same line with identical generated names emit the |
| function | test_gen_branch_tests_nested_defs_skipped_but_compound_descended |
229 | Nested function scopes are not branches of the enclosing function, |
| function | test_gen_branch_tests_kwonly_args_emitted_in_call |
251 | Keyword-only parameters are filled in every generated call. |
| function | test_gen_branch_tests_registers_sentinel_imports_and_cast_typing |
265 | Path args register pathlib on the TestFile; unresolved custom |
| function | test_gen_branch_tests_source_docstring_sanitized |
285 | Source embedded in the class docstring has its double quotes replaced |
| function | test_gen_branch_tests_method_with_init_constructor_and_kwargs |
312 | A method's setup_method fills required init args from sentinels |
| function | test_gen_branch_tests_method_init_with_required_kwonly |
340 | |
| function | test_gen_branch_tests_method_init_all_optional_returns_bare_constructor |
363 | |
| function | test_gen_branch_tests_method_class_without_init_falls_back |
386 | |
| function | test_build_constructor_class_node_none_and_missing_init |
407 | |
| function | test_find_init_found_and_not_found |
413 | |
| function | test_handler_reraises_direct_shapes |
427 | Direct calls: no caught type defaults to Exception; a handler that |
| function | test_collect_events_known_kinds_from_real_source |
457 | A single function exercising all four event kinds produces sorted |
| function | test_assert_return_none_and_scalars |
488 | |
| function | test_is_optional_return_variants |
504 | |
| function | test_exc_class_tuple_dotted_and_call_shapes |
511 | |
| function | test_exc_message_only_trusts_constant_string_first_arg |
517 | |
| function | test_assert_message_constant_string_and_others |
532 | |
| function | test_slug_normalizes_condition |
541 | |
| function | test_sanitize_docstring_source_escapes_quotes |
546 |