gh#95: identity grammar: field constrains that tier’s output

Tests › tests/model/test_gh95_identity_grammar.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/model/test_gh95_identity_grammar.cpp:49 · its file's page

What it checks (6)

  1. REQUIRE(home != nullptr) not attributed
  2. REQUIRE(entropic_create(&h) == ENTROPIC_OK) observes entropic_create
  3. REQUIRE(entropic_configure_dir(h, dir.string().c_str()) == ENTROPIC_OK) observes entropic_configure_dir
  4. REQUIRE(entropic_grammar_register_file( h, "forcehello", (dir / "forcehello.gbnf").string().c_str()) == ENTROPIC_OK) observes entropic_grammar_register_file
  5. REQUIRE(rc == ENTROPIC_OK) observes entropic_run via rc
  6. CHECK(result.find("HELLO") != std::string::npos) 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#95: identity grammar: field constrains that tier's output→REQUIRE→write_file→entropic_create→entropic_create→entropic_configure_dir→entropic_configure_dir→entropic_grammar_register_file→entropic_grammar_register_file→WHEN→entropic_run→entropic_run→entropic_free→entropic_free→entropic_destroy→entropic_destroy

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#95: identity grammar: field constrains that tier's output · 6 checksentropic_createREQ-ABI-001 · inferredentropic_grammar_register_fileREQ-ABI-002 · inferredentropic_createREQ-API-002 · inferredentropic_createREQ-API-003 · inferredentropic_configure_dirREQ-API-004 · inferredentropic_grammar_register_fileREQ-API-005 · inferredentropic_configure_dir… 10 calls …entropic_last_errorREQ-API-007 · inferredentropic_runREQ-API-008 · inferredentropic_runREQ-API-009 · inferredentropic_runREQ-API-010 · inferredWHENfailure_detailREQ-API-012 · inferredentropic_configure_dirdo_configure_dirconfigure_commoninit_orchestratorREQ-API-013 · inferred

and 66 more requirement paths, listed below.

Also reaches 79 requirements

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