Factory receives the exact GenerationParams passed in¶
Tests › tests/unit/inference/sampler_seam_test.cpp
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)
REQUIRE(mock_raw->create_calls == 1)not attributedREQUIRE(mock_raw->received_params.size() == 1)not attributedREQUIRE(got.temperature == 0.55f)not attributedREQUIRE(got.top_p == 0.85f)not attributedREQUIRE(got.top_k == 30)not attributedREQUIRE(got.min_p == 0.05f)not attributedREQUIRE(got.repeat_penalty == 1.15f)not attributedREQUIRE(got.seed == 12345)not attributedREQUIRE(got.max_tokens == 64)not attributedREQUIRE(got.grammar == "root ::= \"hi\"")not attributedREQUIRE(sampler != nullptr)not attributedREQUIRE(mock_raw->last_vended != nullptr)not attributedREQUIRE(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→REQUIREWhat 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.