Load bundled grammars from directory

Tests › tests/unit/inference/grammar_registry_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/grammar_registry_test.cpp:258 · its file's page

What it checks (10)

  1. REQUIRE(count == 3) observes load_bundled via count
  2. REQUIRE(reg.has("alpha")) observes has
  3. REQUIRE(reg.has("beta")) observes has
  4. REQUIRE(reg.has("gamma")) observes has
  5. REQUIRE(reg.entry("alpha").validated) observes entry
  6. REQUIRE(reg.entry("beta").validated) observes entry
  7. REQUIRE_FALSE(reg.entry("gamma").validated) observes entry
  8. REQUIRE_FALSE(reg.entry("gamma").error.empty()) observes entry
  9. REQUIRE(reg.entry("alpha").source == "bundled") observes entry
  10. REQUIRE(reg.entry("beta").source == "bundled") observes entry

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

Load bundled grammars from directory→create_grammar_dir→WHEN→load_bundled→REQUIRE→has→entry→cleanup_dir

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.

Load bundled grammars from directory · 10 checksWHENfailure_detailREQ-API-012 · inferredload_bundledREQ-INFER-007 · inferred
Also reaches 2 requirements

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