gh#148: gpu_layers accepts a count or the word auto

Tests › tests/unit/config/loader_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/loader_test.cpp:367 · its file's page

What it checks (11)

  1. REQUIRE(err.empty()) observes load_config_from_string via err
  2. REQUIRE(config.models.tiers.count("lead") == 1) not attributed
  3. CHECK(config.models.tiers["lead"].gpu_layers_auto) not attributed
  4. CHECK(config.models.tiers["lead"].gpu_layers == -1) not attributed
  5. REQUIRE(err.empty()) observes load_config_from_string via err
  6. REQUIRE(config.models.tiers.count("lead") == 1) not attributed
  7. CHECK(config.models.tiers["lead"].gpu_layers_auto) not attributed
  8. CHECK(config.models.tiers["lead"].gpu_layers == -1) not attributed
  9. REQUIRE(err.empty()) observes load_config_from_string via err
  10. CHECK(config.models.tiers["lead"].gpu_layers == 15) not attributed
  11. CHECK_FALSE(config.models.tiers["lead"].gpu_layers_auto) 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#148: gpu_layers accepts a count or the word auto→load_test_registry→WHEN→load_config_from_string→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.

gh#148: gpu_layers accepts a count or the word auto · 11 checksWHENfailure_detailREQ-API-012 · inferredload_config_from_stringREQ-CFG-001 · inferredload_config_from_stringparse_config_stringparse_models_configREQ-CFG-002 · inferredload_test_registryloadREQ-CFG-003 · inferredload_config_from_stringparse_config_stringparse_models_configparse_model_configREQ-CFG-005 · inferredload_config_from_stringREQ-CFG-006 · inferredload_config_from_stringparse_config_stringparse_optional_sectionsparse_delegation_configREQ-DELEG-005 · inferredload_config_from_stringvalidate_configvalidatesession_pool_conflict_reasonREQ-INFER-019 · inferredload_config_from_stringvalidate_configvalidateREQ-INFER-027 · inferredload_config_from_string… 4 calls …parse_absolute_path_listREQ-MCP-021 · inferredload_config_from_string… 5 calls …parse_bash_configREQ-MCP-023 · inferredload_config_from_stringparse_config_stringparse_models_configparse_model_configREQ-TYPE-005 · inferred
Also reaches 12 requirements

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