test_cpp_checks_are_pinned_through_the_assertion_macros

Tests › tests/test_wiki_checkpins.py

passed Passed in the packaged run.

What this test is for

Why it exists

tree-sitter: REQUIRE / CHECK / EXPECT_EQ, the same three kinds.

Verifies REQ-DDB-WIKI-044

Given

  1. —
→

When

  1. pins = pin_checks(_CPP.splitlines(), "tests/test_store.cpp", {"save", "clean"})
→

Then

  1. ✓ _kinds(pins) equals [ ("direct", "save"), ("via variable", "save"), ("not attributed", None), ("direct", "clean"), ]

tests/test_wiki_checkpins.py:59 · its file's page

What it checks (1)

  1. assert _kinds(pins) == [ ("direct", "save"), ("via variable", "save"), ("not attributed", None), ("direct", "clean"), ] observes _kinds

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

test_cpp_checks_are_pinned_through_the_assertion_macros→pin_checks→_kinds

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.

test_cpp_checks_are_pinned_through_the_assertion_macros · 1 checkspin_checksREQ-DDB-WIKI-043 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-044catalogunknown
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.