Orchestrata Ultimate › Tests › Reference › test_orchestrata_tools_testgen_structural_coverage
Tests reference — tests/test_orchestrata_tools_testgen_structural_coverage.py
Module of tests, split out because the directory page would be too large.
Prose pending.
tests/test_orchestrata_tools_testgen_structural_coverage.py
source · 29 tests · 1027 lines
Line-coverage completion for
structural.py— the Layer 2 mechanical
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_gen_dataclass_tests_required_fields_defaults_and_metadata |
253 | Point2 (frozen/slots/eq dataclass, required + default + factory + |
| function | test_gen_dataclass_tests_multi_required_and_callable_field |
303 | Two required fields (one a Callable) — the per-field drop-one loop |
| function | test_gen_dataclass_tests_optional_only_bare_constructor |
330 | A dataclass with no required fields: _make and the defaults test |
| function | test_gen_dataclass_tests_frozen_without_fields_skips_assignment |
352 | frozen=True with zero fields: the immutability test still exists but |
| function | test_gen_dataclass_tests_eq_disabled_omits_equality_test |
375 | |
| function | test_gen_dataclass_tests_post_init_skips_default_values |
390 | A post_init may mutate fields, so exact default assertions are |
| function | test_gen_dataclass_tests_generated_file_runs_green |
415 | The assembled TestFile for the frozen/slots Point2 dataclass must |
| function | test_gen_enum_tests_plain_enum_content |
435 | Plain Enum with three known members — existence, values, lookup, |
| function | test_gen_enum_tests_intenum_content |
467 | IntEnum: invalid-value probe uses 999999, and int-coercion tests are |
| function | test_gen_enum_tests_strenum_content |
482 | |
| function | test_gen_enum_tests_auto_members_skipped_from_values |
491 | Level mixes a known int member with an auto() member — value/lookup |
| function | test_gen_enum_tests_empty_members_skips_optional_blocks |
509 | A member-less enum: no value/lookup/membership/repr/name tests, but |
| function | test_gen_enum_tests_generated_file_runs_green |
534 | Plain enum, auto()-mixed enum, IntEnum and StrEnum generated files |
| function | test_gen_abstract_tests_multiple_methods_content |
582 | An ABC with three abstract methods (int/str/bool returns) — direct |
| function | test_gen_abstract_tests_single_method_skips_partial |
625 | One abstract method: the len > 1 partial-implementation block is |
| function | test_gen_abstract_tests_property_abstract_method |
652 | An abstract @property — emitted with the property decorator and read |
| function | test_method_stub_return_variants |
682 | Every return-type branch of _method_stub, plus the no-signature and |
| function | test_gen_abstract_tests_generated_file_runs_green |
698 | |
| function | test_gen_protocol_tests_runtime_checkable_content |
739 | A @runtime_checkable protocol with an attribute plus property / |
| function | test_gen_protocol_tests_empty_protocol_pass_body |
784 | A member-less, non-runtime-checkable protocol: 'pass' conforming |
| function | test_gen_protocol_tests_attrs_only |
811 | An attributes-only protocol (including an untyped attribute): the |
| function | test_gen_protocol_tests_methods_only |
836 | A methods-only protocol: callable checks and |
| function | test_gen_protocol_tests_generated_file_runs_green |
861 | The @runtime_checkable Greeter protocol's generated file — conformance |
| function | test_gen_entry_point_tests_function_and_method_entries |
925 | A module-level function and a method entry: both class shapes, the |
| function | test_gen_entry_point_tests_top_n_zero_renders_only_header |
946 | top_n=0 (or an empty ranked list) renders the header comment block |
| function | test_sig_from_params_filters_special_params |
955 | self/cls and varargs/kwargs are excluded from the call-site arg |
| function | test_field_sentinel_tracks_imports_and_cast |
976 | A type with a stdlib import recipe registers the module on the |
| function | test_sentinel_for_annotation_tracks_imports_and_cast |
994 | |
| function | test_generators_accept_project_config_custom_sentinels |
1011 | gen_dataclass_tests/gen_protocol_tests accept a ProjectConfig — a |