Factory receives the exact GenerationParams passed in

Tests › tests/unit/inference/sampler_seam_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/inference/sampler_seam_test.cpp:182 · its file's page

What it checks (13)

  1. REQUIRE(mock_raw->create_calls == 1) not attributed
  2. REQUIRE(mock_raw->received_params.size() == 1) not attributed
  3. REQUIRE(got.temperature == 0.55f) not attributed
  4. REQUIRE(got.top_p == 0.85f) not attributed
  5. REQUIRE(got.top_k == 30) not attributed
  6. REQUIRE(got.min_p == 0.05f) not attributed
  7. REQUIRE(got.repeat_penalty == 1.15f) not attributed
  8. REQUIRE(got.seed == 12345) not attributed
  9. REQUIRE(got.max_tokens == 64) not attributed
  10. REQUIRE(got.grammar == "root ::= \"hi\"") not attributed
  11. REQUIRE(sampler != nullptr) not attributed
  12. REQUIRE(mock_raw->last_vended != nullptr) not attributed
  13. REQUIRE(static_cast<entropic::Sampler*>( mock_raw->last_vended) == sampler.get()) not attributed

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

Factory receives the exact GenerationParams passed in→inject_sampler_factory_for_test→WHEN→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.

Factory receives the exact GenerationParams passed in · 13 checksWHENfailure_detailREQ-API-012 · inferred
Also reaches 1 requirement

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