← Về thư mục
tests/test_diagnostic_archive_boundary.py
- HostileFailure · class · L62-L78 — class HostileFailure(RuntimeError)
- init · method · L69-L71 — def init(self, repeat: int = 1) -> None
- str · method · L73-L78 — def str(self) -> str
- UnrenderableFailure · class · L81-L85 — class UnrenderableFailure(RuntimeError)
- str · method · L84-L85 — def str(self) -> str
- cfg · function · L89-L92 — def cfg(tmp_path)
- _bundle · function · L95-L99 — def _bundle(cfg, tmp_path, name="b.zip") -> bytes
- assert_no_canary · function · L102-L104 — def assert_no_canary(blob: bytes, *, where: str) -> None
- test_the_diagnostic_record_never_renders_an_unknown_exception · function · L112-L135 — def test_the_diagnostic_record_never_renders_an_unknown_exception()
- test_a_huge_hostile_message_is_never_materialised · function · L138-L152 — def test_a_huge_hostile_message_is_never_materialised()
- test_an_exception_that_refuses_to_render_still_records · function · L155-L161 — def test_an_exception_that_refuses_to_render_still_records()
- test_the_record_correlates_two_failures_of_the_same_kind · function · L164-L175 — def test_the_record_correlates_two_failures_of_the_same_kind()
- test_a_structured_diagnostic_line_is_sanitised_into_the_archive · function · L183-L200 — def test_a_structured_diagnostic_line_is_sanitised_into_the_archive(cfg, tmp_path)
- test_an_ordinary_field_holding_a_sentence_does_not_ride_through · function · L203-L230 — def test_an_ordinary_field_holding_a_sentence_does_not_ride_through(cfg, tmp_path)
- test_a_plain_log_line_is_never_shared_verbatim · function · L233-L249 — def test_a_plain_log_line_is_never_shared_verbatim(cfg, tmp_path)
- test_the_report_is_sanitised_like_everything_else · function · L252-L265 — def test_the_report_is_sanitised_like_everything_else(cfg, tmp_path, monkeypatch)
- test_the_report_has_no_stringify_anything_escape_hatch · function · L268-L284 — def test_the_report_has_no_stringify_anything_escape_hatch(cfg, tmp_path, monkeypatch)
- _Sneaky · class · L274-L278 — class _Sneaky
- repr · method · L275-L276 — def repr(self) -> str
- test_a_posture_probe_that_throws_reports_a_type_not_a_message · function · L292-L309 — def test_a_posture_probe_that_throws_reports_a_type_not_a_message(cfg, tmp_path)
- _Boom · class · L298-L302 — class _Boom
- getattr · method · L299-L302 — def getattr(self, name)
- test_a_credential_in_a_url_fragment_is_redacted · function · L317-L327 — def test_a_credential_in_a_url_fragment_is_redacted()
- test_the_env_switch_notice_carries_no_arbitrary_text · function · L335-L348 — def test_the_env_switch_notice_carries_no_arbitrary_text()
- _bundle_parts · function · L351-L358 — def _bundle_parts(cfg, tmp_path, name="b.zip")
- assert_archive_clean · function · L361-L369 — def assert_archive_clean(cfg, tmp_path, *, where: str, name="b.zip") -> bytes
- test_an_allowlisted_field_does_not_carry_arbitrary_content · function · L383-L403 — def test_an_allowlisted_field_does_not_carry_arbitrary_content( cfg, tmp_path, field, payload )
- test_the_allowlisted_fields_still_carry_their_real_values · function · L406-L438 — def test_the_allowlisted_fields_still_carry_their_real_values(cfg, tmp_path)
- test_a_report_leaf_carries_no_arbitrary_value · function · L454-L465 — def test_a_report_leaf_carries_no_arbitrary_value(cfg, tmp_path, monkeypatch, payload)
- test_a_hostile_mapping_key_is_never_rendered · function · L468-L484 — def test_a_hostile_mapping_key_is_never_rendered(cfg, tmp_path, monkeypatch)
- _Key · class · L474-L481 — class _Key
- str · method · L475-L476 — def str(self) -> str
- hash · method · L480-L481 — def hash(self) -> int
- test_the_report_still_carries_the_posture_it_exists_for · function · L487-L492 — def test_the_report_still_carries_the_posture_it_exists_for(cfg, tmp_path)
- test_a_credential_shaped_log_name_reaches_neither_member_nor_manifest · function · L498-L510 — def test_a_credential_shaped_log_name_reaches_neither_member_nor_manifest( cfg, tmp_path )
- test_a_dynamic_exception_type_name_is_not_trusted · function · L516-L535 — def test_a_dynamic_exception_type_name_is_not_trusted()
- test_every_fragment_value_is_masked · function · L544-L555 — def test_every_fragment_value_is_masked(param)
- test_the_real_structured_logger_reaches_the_archive_safely · function · L561-L580 — def test_the_real_structured_logger_reaches_the_archive_safely( cfg, tmp_path, monkeypatch, capsys )
- test_the_local_log_is_richer_than_the_archive · function · L583-L605 — def test_the_local_log_is_richer_than_the_archive(cfg, tmp_path)
- test_a_field_validator_admits_only_what_the_repository_named · function · L608-L650 — def test_a_field_validator_admits_only_what_the_repository_named()
- test_a_mapping_key_that_refuses_to_render_does_not_break_the_bundle · function · L653-L679 — def test_a_mapping_key_that_refuses_to_render_does_not_break_the_bundle( cfg, tmp_path, monkeypatch )
- _Explosive · class · L665-L672 — class _Explosive
- str · method · L666-L667 — def str(self) -> str
- hash · method · L671-L672 — def hash(self) -> int
- test_a_private_class_name_is_reported_as_its_base_family · function · L699-L719 — def test_a_private_class_name_is_reported_as_its_base_family()
- test_a_secret_under_an_unrecognised_env_name_never_reaches_the_bundle · function · L730-L746 — def test_a_secret_under_an_unrecognised_env_name_never_reaches_the_bundle( cfg, tmp_path, monkeypatch )
- test_prompt_and_research_bytes_are_not_in_the_archive · function · L749-L771 — def test_prompt_and_research_bytes_are_not_in_the_archive(cfg, tmp_path)
- test_an_absolute_path_canary_does_not_survive_into_member_names · function · L774-L780 — def test_an_absolute_path_canary_does_not_survive_into_member_names(cfg, tmp_path)
- test_a_private_class_name_reaches_no_reporting_surface · function · L783-L800 — def test_a_private_class_name_reaches_no_reporting_surface(cfg, tmp_path)
- test_a_well_formed_value_still_does_not_pass_on_its_shape · function · L810-L828 — def test_a_well_formed_value_still_does_not_pass_on_its_shape( cfg, tmp_path, field, payload )
- test_a_request_id_is_matchable_by_fingerprint · function · L831-L840 — def test_a_request_id_is_matchable_by_fingerprint(cfg, tmp_path)
- test_the_known_vocabulary_still_travels · function · L843-L870 — def test_the_known_vocabulary_still_travels(cfg, tmp_path)
- test_a_report_leaf_does_not_pass_on_its_shape · function · L887-L897 — def test_a_report_leaf_does_not_pass_on_its_shape( cfg, tmp_path, monkeypatch, key, payload )
- test_a_migration_name_does_not_travel · function · L900-L930 — def test_a_migration_name_does_not_travel(cfg, tmp_path, monkeypatch)
- test_the_real_environment_report_still_travels · function · L933-L942 — def test_the_real_environment_report_still_travels(cfg, tmp_path)
- test_a_non_string_surface_or_id_is_not_stringified · function · L945-L968 — def test_a_non_string_surface_or_id_is_not_stringified()
- _NotAString · class · L955-L959 — class _NotAString
- str · method · L956-L957 — def str(self) -> str
- test_an_error_class_is_re_fingerprinted_rather_than_passed_on_its_shape · function · L981-L1003 — def test_an_error_class_is_re_fingerprinted_rather_than_passed_on_its_shape( cfg, tmp_path, value )
- _Alias · class · L1006-L1024 — class _Alias(str)
- new · method · L1015-L1018 — def new(cls, real: str, pretend: str) -> "_Alias"
- hash · method · L1020-L1021 — def hash(self) -> int: # type: ignore[override]
- eq · method · L1023-L1024 — def eq(self, other: object) -> bool: # type: ignore[override]
- _LowerAlias · class · L1027-L1031 — class _LowerAlias(str)
- lower · method · L1030-L1031 — def lower(self) -> str: # type: ignore[override]
- _Exploding · class · L1034-L1045 — class _Exploding(str)
- str · method · L1039-L1041 — def str(self) -> str: # type: ignore[override]
- encode · method · L1043-L1045 — def encode(self, args, *kwargs): # type: ignore[override]
- test_a_lying_string_subclass_cannot_impersonate_an_allowed_value · function · L1048-L1059 — def test_a_lying_string_subclass_cannot_impersonate_an_allowed_value( cfg, tmp_path, monkeypatch )
- test_a_lying_string_subclass_cannot_impersonate_an_allowed_key · function · L1062-L1073 — def test_a_lying_string_subclass_cannot_impersonate_an_allowed_key( cfg, tmp_path, monkeypatch )
- test_a_lower_cased_enum_is_not_decided_by_the_value · function · L1076-L1088 — def test_a_lower_cased_enum_is_not_decided_by_the_value(cfg, tmp_path)
- test_a_string_that_refuses_to_render_is_never_asked_to · function · L1091-L1107 — def test_a_string_that_refuses_to_render_is_never_asked_to(cfg, tmp_path, monkeypatch)
- test_an_enum_returns_the_repositorys_own_literal · function · L1110-L1121 — def test_an_enum_returns_the_repositorys_own_literal(cfg, tmp_path)
- test_an_unknown_secret_backend_does_not_travel · function · L1124-L1134 — def test_an_unknown_secret_backend_does_not_travel(cfg, tmp_path, monkeypatch)
- test_a_migration_row_travels_only_as_fingerprints · function · L1137-L1162 — def test_a_migration_row_travels_only_as_fingerprints(cfg, tmp_path, monkeypatch)
- _AliasNamed · class · L1165-L1176 — class _AliasNamed(type)
- name · method · L1175-L1176 — def name(cls): # type: ignore[override]
- test_a_class_that_lies_about_its_own_name_is_not_believed · function · L1179-L1190 — def test_a_class_that_lies_about_its_own_name_is_not_believed()
- test_an_alias_key_would_travel_without_the_exact_type_check · function · L1193-L1214 — def test_an_alias_key_would_travel_without_the_exact_type_check( cfg, tmp_path, monkeypatch )