test_assertions_are_read_per_framework

Tests › tests/test_wiki_symbols.py

passed Passed in the packaged run.

What this test is for

Why it exists

a statement spanning lines is read whole.

Verifies REQ-DDB-WIKI-025 REQ-DDB-WIKI-027

Given

  1. lines = [ "def test_x():", " assert f(1) == 2", " REQUIRE(x == 1);", " CHECK_THAT(a,", " Equals(b));", " EXPECT_EQ(1, f());", " foo();", " TEST_ASSERT_EQUAL(1, x);", " ASSERT_TRUE(ok) << why;", ]
→

When

  1. —
→

Then

  1. ✓ assertions(lines) equals [ "assert f(1) == 2", "REQUIRE(x == 1);", "CHECK_THAT(a, Equals(b));", "EXPECT_EQ(1, f());", "TEST_ASSERT_EQUAL(1, x);", "ASSERT_TRUE(ok) << why;", ]

tests/test_wiki_symbols.py:185 · its file's page

What it checks (1)

  1. assert assertions(lines) == [ "assert f(1) == 2", "REQUIRE(x == 1);", "CHECK_THAT(a, Equals(b));", "EXPECT_EQ(1, f());", "TEST_ASSERT_EQUAL(1, x);", "ASSERT_TRUE(ok) << why;", ] observes assertions

Where the product reaches it

  • build_wiki → _build_site → symbol_pages → _section → _test_block → assertions (flow)

Call flow

test_assertions_are_read_per_framework→assertions

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_assertions_are_read_per_framework · 1 checksassertionsREQ-DDB-WIKI-026 · measured

Requirements it verifies (2)

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

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