Custom compactor is invoked instead of default when registered

Tests › tests/model/test_e10_custom_compactor.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/model/test_e10_custom_compactor.cpp:64 · its file's page

What it checks (6)

  1. REQUIRE(g_ctx.initialized) not attributed
  2. REQUIRE(rc == ENTROPIC_OK) observes register_compactor via rc
  3. REQUIRE(registry.has_custom_compactor("")) observes has_custom_compactor
  4. CHECK(g_custom_compactor_called) not attributed
  5. CHECK(result.custom_compactor_used) observes compact via result
  6. CHECK(result.summary.find("[CUSTOM]") != std::string::npos) observes compact via result

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

Custom compactor is invoked instead of default when registered→REQUIRE→start_test_log→register_compactor→has_custom_compactor→WHEN→compact→end_test_log→custom_test_compactor

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.

Custom compactor is invoked instead of default when registered · 6 checksWHENfailure_detailREQ-API-012 · inferredregister_compactorREQ-COMPACT-001 · inferred
Also reaches 2 requirements

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