gh#94: per-tier sampler knobs parse from YAML into TierConfig¶
Tests › tests/unit/config/loader_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/config/loader_test.cpp:975 · its file's page
What it checks (22)
REQUIRE(err.empty())observesload_config_from_stringviaerrREQUIRE(config.models.tiers.count("lead") == 1)not attributedREQUIRE(t.temperature.has_value())not attributedCHECK(*t.temperature == Catch::Approx(0.3f))not attributedREQUIRE(t.enable_thinking.has_value())not attributedCHECK(*t.enable_thinking == false)not attributedREQUIRE(t.top_k.has_value())not attributedCHECK(*t.top_k == 20)not attributedREQUIRE(t.top_p.has_value())not attributedCHECK(*t.top_p == Catch::Approx(0.85f))not attributedREQUIRE(t.min_p.has_value())not attributedCHECK(*t.min_p == Catch::Approx(0.05f))not attributedREQUIRE(t.repeat_penalty.has_value())not attributedCHECK(*t.repeat_penalty == Catch::Approx(1.2f))not attributedREQUIRE(t.max_output_tokens.has_value())not attributedCHECK(*t.max_output_tokens == 2048)not attributedREQUIRE(err.empty())observesload_config_from_stringviaerrREQUIRE(config.models.tiers.count("lead") == 1)not attributedCHECK_FALSE(t.temperature.has_value())not attributedCHECK_FALSE(t.enable_thinking.has_value())not attributedCHECK_FALSE(t.top_k.has_value())not attributedCHECK_FALSE(t.repeat_penalty.has_value())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
gh#94: per-tier sampler knobs parse from YAML into TierConfig→load_test_registry→WHEN→load_config_from_string→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.
Also reaches 12 requirements
Its run touches their code; that is reach, not proof.
- REQ-API-012 inferred
- REQ-CFG-001 inferred
- REQ-CFG-002 inferred
- REQ-CFG-003 inferred
- REQ-CFG-005 inferred
- REQ-CFG-006 inferred
- REQ-DELEG-005 inferred
- REQ-INFER-019 inferred
- REQ-INFER-027 inferred
- REQ-MCP-021 inferred
- REQ-MCP-023 inferred
- REQ-TYPE-005 inferred