← Về thư mục
scripts/test_check_policy_anchor_table.py
- CheckPolicyAnchorTableGoldenPathTest · class · L123-L126 — class CheckPolicyAnchorTableGoldenPathTest(unittest.TestCase)
- test_good_table_passes · method · L124-L126 — def test_good_table_passes(self) -> None
- CheckPolicyAnchorTableMutationTests · class · L129-L219 — class CheckPolicyAnchorTableMutationTests(unittest.TestCase)
- test_missing_anchor_section_fails · method · L130-L136 — def test_missing_anchor_section_fails(self) -> None
- test_missing_field_row_fails · method · L138-L150 — def test_missing_field_row_fails(self) -> None: # Remove field #5 from PRISMA-trAIce. textwrap.dedent strips leading # indent so rows start at column 0; match the row prefix exactly.
- test_missing_snapshot_ref_fails · method · L152-L161 — def test_missing_snapshot_ref_fails(self) -> None
- test_mandate_cell_without_verbatim_quote_fails · method · L163-L174 — def test_mandate_cell_without_verbatim_quote_fails(self) -> None: # Strip the quote from ICMJE #10 (mandate cell)
- test_unknown_source_strength_fails · method · L176-L182 — def test_unknown_source_strength_fails(self) -> None
- test_invalid_anchor_slug_fails · method · L184-L191 — def test_invalid_anchor_slug_fails(self) -> None: # Add an extra anchor section with a slug not in the four canonical ones
- test_field_out_of_order_fails · method · L193-L208 — def test_field_out_of_order_fails(self) -> None: # Swap field #14 and #15 in IEEE table to test order enforcement
- test_duplicate_anchor_section_fails · method · L210-L219 — def test_duplicate_anchor_section_fails(self) -> None: # Codex round-3 P2 #2 closure: a second
## Anchor: ieee heading # silently overwrote the first in the dict-based section split, # passing slug coverage. The validator now flags duplicates.
- CheckPolicyAnchorTableNatureSourceOfTruthTest · class · L222-L275 — class CheckPolicyAnchorTableNatureSourceOfTruthTest(unittest.TestCase)
- test_nature_dedup_helper_exists · method · L228-L232 — def test_nature_dedup_helper_exists(self) -> None
- test_nature_dedup_integration_on_real_files · method · L234-L238 — def test_nature_dedup_integration_on_real_files(self) -> None
- test_canonical_nature_source_file_exists · method · L240-L249 — def test_canonical_nature_source_file_exists(self) -> None: # Codex round-4 P2 #4 closure: the dedup helper now confirms the # shared source file actually exists, not just that the path # string appears in both consumers.
- test_main_command_invokes_dedup_helper · method · L251-L275 — def test_main_command_invokes_dedup_helper(self) -> None: # Codex round-7 P3 #1 closure: removing the canonical Nature source # file should fail the main lint command (not just the unit test).
- CheckPolicyAnchorTableInvariantTest · class · L278-L291 — class CheckPolicyAnchorTableInvariantTest(unittest.TestCase)
- test_canonical_anchor_slugs · method · L284-L288 — def test_canonical_anchor_slugs(self) -> None
- test_canonical_field_count · method · L290-L291 — def test_canonical_field_count(self) -> None