test_extractor_suffix_sets_do_not_overlap

Tests › tests/test_filedocs.py

passed Passed in the packaged run.

What this test is for

Why it exists

Dispatch is first-match, so an overlap would make which extractor runs depend on declaration order — the sort of thing that works until someone sorts a tuple.

Verifies REQ-DDB-PIPE-008 REQ-DDB-SCHEMA-014

Given

  1. py = set(PythonFileDoc.EXTENSIONS)
  2. cxx = set(CFamilyFileDoc.EXTENSIONS)
→

When

  1. —
→

Then

  1. ✓ py & cxx equals set()
  2. ✓ py holds
  3. ✓ cxx holds

tests/test_filedocs.py:170 · its file's page

What it checks (2)

  1. assert py & cxx == set() not attributed
  2. assert py and cxx not attributed

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

Requirements it verifies (2)

requirementlinked byimplementers exercised
REQ-DDB-PIPE-008catalogunknown
REQ-DDB-SCHEMA-014catalogunknown