RoutingConfig validation

Tests › tests/unit/config/validate_test.cpp

absent Not in the packaged run: no test report names it.

What this test is for

Why it exists

The test says nothing about why.

tests/unit/config/validate_test.cpp:139 · its file's page

What it checks (12)

  1. REQUIRE_FALSE(err.empty()) observes validate_routing via err
  2. REQUIRE(err.find("router is not configured") != std::string::npos) observes validate_routing via err
  3. REQUIRE_FALSE(err.empty()) observes validate_routing via err
  4. REQUIRE(err.find("nonexistent") != std::string::npos) observes validate_routing via err
  5. REQUIRE_FALSE(err.empty()) observes validate_routing via err
  6. REQUIRE(err.find("nonexistent") != std::string::npos) observes validate_routing via err
  7. REQUIRE_FALSE(err.empty()) observes validate_routing via err
  8. REQUIRE(err.find("tier_map is empty") != std::string::npos) observes validate_routing via err
  9. REQUIRE_FALSE(err.empty()) observes validate_routing via err
  10. REQUIRE(err.find("missing") != std::string::npos) observes validate_routing via err
  11. REQUIRE_FALSE(err.empty()) observes validate_routing via err
  12. REQUIRE(err.find("missing") != std::string::npos) observes validate_routing via err

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

RoutingConfig validation→WHEN→validate_routing→REQUIRE

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.

RoutingConfig validation · 12 checksWHENfailure_detailREQ-API-012 · inferredvalidate_routingREQ-CFG-006 · inferred
Also reaches 2 requirements

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