test_assertions_are_read_per_framework¶
Tests › tests/test_wiki_symbols.py
What this test is for
Given
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
- —
Then
- ✓ 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)
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;", ]observesassertions
Where the product reaches it
build_wiki→_build_site→symbol_pages→_section→_test_block→assertions(flow)
Call flow
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)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-025 | catalog | unknown |
| REQ-DDB-WIKI-027 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-026 measured