Orchestrata Ultimate › Tests › Reference › test_orchestrata_tools_testgen_generator_coverage
Tests reference — tests/test_orchestrata_tools_testgen_generator_coverage.py
Module of tests, split out because the directory page would be too large.
Prose pending.
tests/test_orchestrata_tools_testgen_generator_coverage.py
source · 19 tests · 740 lines
Line-coverage backfill for
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_resolve_import_path_prefixed_module_path_and_empty |
93 | Both halves of the package_prefix ternary: a non-empty module |
| function | test_resolve_import_path_no_prefix_returns_module_path_unchanged |
106 | |
| function | test_generate_tests_enum_class_adds_enum_section_and_passes |
120 | An enum.Enum subclass drives the gen_enum_tests section; the |
| function | test_generate_tests_abstract_class_adds_abstract_section_and_passes |
154 | An ABC subclass with an @abstractmethod drives the |
| function | test_generate_tests_protocol_class_adds_protocol_section_and_passes |
192 | A typing.Protocol subclass drives the gen_protocol_tests |
| function | test_generate_tests_class_node_and_func_node_missing_from_tree_are_skipped |
231 | A module whose CodebaseAST entry claims a structural class AND a |
| function | test_generate_tests_branch_stubs_for_top_level_function |
277 | A module with a top-level ranked function and branch tests enabled |
| function | test_generate_tests_branch_stubs_for_class_method |
310 | A class method drives the branch-stub loop's method shape: the |
| function | test_generate_tests_unreadable_module_source_falls_back_to_ast_only |
344 | When the module's source file cannot be read (OSError — here: the |
| function | test_generate_tests_combined_mode_module_without_tree_is_skipped |
391 | per_module=False with one targeted module absent from trees |
| function | test_generate_tests_module_without_classes_or_functions_is_skipped |
439 | A module with neither classes nor functions (only a module-level |
| function | test_generate_tests_per_module_module_without_tree_is_skipped |
460 | per_module=True with one targeted module absent from trees |
| function | test_generate_tests_unimportable_module_skipped_in_per_module_mode |
501 | A module whose import raises at runtime is filtered by |
| function | test_print_ranking_prints_the_priority_table |
544 | print_ranking runs the ranker and prints the priority table to |
| function | test_generate_tests_testfile_hook_applies_to_generated_file |
563 | A configured testfile_hook is invoked with the fresh TestFile |
| function | test_generate_tests_private_class_only_module_produces_no_file |
601 | A module whose only class is private (name starts with _) is |
| function | test_generate_tests_entry_point_stubs_enabled_adds_stub_section |
627 | With enable_entry_point_stubs=True and a ranked function in |
| function | test_generate_tests_all_exports_widen_the_import_list |
666 | A module that defines __all__ imports every listed name — the |
| function | test_generate_tests_combined_mode_unimportable_module_uses_ast_names |
706 | Combined mode reaches _public_names without the per-module |