CompactionConfig 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:246 · its file's page

What it checks (9)

  1. REQUIRE_FALSE(err.empty()) observes validate via err
  2. REQUIRE(err.find("warning_threshold_percent") != std::string::npos) observes validate via err
  3. REQUIRE(validate(cfg).empty()) observes validate
  4. REQUIRE_FALSE(err.empty()) observes validate via err
  5. REQUIRE(err.find("threshold_percent") != std::string::npos) observes validate via err
  6. REQUIRE_FALSE(err.empty()) observes validate via err
  7. REQUIRE(err.find("preserve_recent_turns") != std::string::npos) observes validate via err
  8. REQUIRE_FALSE(err.empty()) observes validate via err
  9. REQUIRE(err.find("tool_result_ttl") != std::string::npos) observes validate 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

CompactionConfig validation→WHEN→validate→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.

CompactionConfig validation · 9 checksWHENfailure_detailREQ-API-012 · inferredvalidateREQ-CFG-006 · inferredvalidatesession_pool_conflict_reasonREQ-INFER-019 · inferredvalidateREQ-INFER-027 · inferred
Also reaches 4 requirements

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