test_module_and_claims

Tests › tests/test_jsts.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Verifies REQ-DDB-PIPE-012

Given

  1. —
→

When

  1. module_of("src/util/strings.ts")
  2. module_of("web/App.test.tsx")
  3. claims("a/b.mjs")
2 more
  1. claims("x.TSX")
  2. claims("a.py")
→

Then

  1. ✓ module_of("src/util/strings.ts") equals "src.util.strings"
  2. ✓ module_of("web/App.test.tsx") equals "web.App.test"
  3. ✓ claims("a/b.mjs") holds
  4. ✓ claims("x.TSX") holds
  5. ✓ claims("a.py") is false

tests/test_jsts.py:175 · its file's page

What it checks (3)

  1. assert module_of("src/util/strings.ts") == "src.util.strings" observes module_of
  2. assert module_of("web/App.test.tsx") == "web.App.test" observes module_of
  3. assert claims("a/b.mjs") and claims("x.TSX") and not claims("a.py") observes claims

Where the product reaches it

  • main → init_main → diagnose → _check_doxygen → _needs_doxygen → claims (flow)

Call flow

test_module_and_claims→claims→module_of

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 (1)

requirementlinked byimplementers exercised
REQ-DDB-PIPE-012catalogunknown