← Về thư mục
tests/test_evidence_verification.py
- _canonical · function · L28-L31 — def _canonical(payload) -> bytes
- _make_package · function · L34-L58 — def _make_package(tmp_path: Path, files: dict[str, bytes] | None = None) -> Path
- _rebuild · function · L61-L68 — def _rebuild(source: Path, target: Path, mutate) -> Path
- test_an_untampered_package_verifies · function · L76-L80 — def test_an_untampered_package_verifies(tmp_path)
- test_the_report_does_not_overclaim · function · L83-L89 — def test_the_report_does_not_overclaim(tmp_path)
- test_the_archive_digest_is_reported · function · L92-L96 — def test_the_archive_digest_is_reported(tmp_path)
- test_a_modified_payload_is_caught · function · L104-L112 — def test_a_modified_payload_is_caught(tmp_path)
- mutate · function · L105-L106 — def mutate(files)
- test_a_deleted_file_is_caught · function · L115-L123 — def test_a_deleted_file_is_caught(tmp_path)
- mutate · function · L116-L117 — def mutate(files)
- test_rewriting_a_payload_and_its_recorded_hash_together_is_caught · function · L126-L143 — def test_rewriting_a_payload_and_its_recorded_hash_together_is_caught(tmp_path)
- mutate · function · L130-L137 — def mutate(files)
- test_an_unlisted_extra_file_is_caught · function · L146-L157 — def test_an_unlisted_extra_file_is_caught(tmp_path)
- mutate · function · L150-L151 — def mutate(files)
- test_a_manifest_without_its_own_digest_is_flagged · function · L160-L170 — def test_a_manifest_without_its_own_digest_is_flagged(tmp_path)
- mutate · function · L161-L164 — def mutate(files)
- test_every_problem_is_reported_not_just_the_first · function · L173-L184 — def test_every_problem_is_reported_not_just_the_first(tmp_path)
- mutate · function · L177-L179 — def mutate(files)
- test_a_missing_file_raises · function · L192-L194 — def test_a_missing_file_raises(tmp_path)
- test_a_non_zip_raises · function · L197-L201 — def test_a_non_zip_raises(tmp_path)
- test_a_zip_without_a_manifest_raises · function · L204-L209 — def test_a_zip_without_a_manifest_raises(tmp_path)
- test_the_verifier_needs_no_daemon_or_store · function · L212-L232 — def test_the_verifier_needs_no_daemon_or_store(tmp_path)
- test_a_high_ratio_zip_is_refused_before_reading · function · L240-L256 — def test_a_high_ratio_zip_is_refused_before_reading(tmp_path)
- test_an_archive_with_too_many_entries_is_refused · function · L259-L269 — def test_an_archive_with_too_many_entries_is_refused(tmp_path)
- test_a_single_oversized_member_is_refused · function · L272-L282 — def test_a_single_oversized_member_is_refused(tmp_path)