Load identity file¶
Tests › tests/unit/prompts/prompt_parse_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/prompts/prompt_parse_test.cpp:93 · its file's page
What it checks (28)
REQUIRE(err.empty())observesload_identityviaerrREQUIRE(identity.frontmatter.name == "testeng")not attributedREQUIRE(identity.frontmatter.focus.size() == 2)not attributedREQUIRE(identity.frontmatter.focus[0] == "write code")not attributedREQUIRE(identity.frontmatter.examples.size() == 2)not attributedREQUIRE(identity.frontmatter.auto_chain.has_value())not attributedREQUIRE(*identity.frontmatter.auto_chain == "lead")not attributedREQUIRE(identity.frontmatter.allowed_tools.has_value())not attributedREQUIRE(identity.frontmatter.allowed_tools->size() == 2)not attributedREQUIRE(identity.frontmatter.temperature.has_value())not attributedREQUIRE(*identity.frontmatter.temperature == Catch::Approx(0.15f))not attributedREQUIRE(identity.frontmatter.max_output_tokens.has_value())not attributedREQUIRE(*identity.frontmatter.max_output_tokens == 8192)not attributedREQUIRE(identity.frontmatter.routable == false)not attributedREQUIRE(identity.frontmatter.enable_thinking.has_value())not attributedREQUIRE(*identity.frontmatter.enable_thinking == false)not attributedREQUIRE(identity.frontmatter.max_iterations == 42)not attributedREQUIRE(identity.frontmatter.max_tool_calls_per_turn == 7)not attributedREQUIRE(identity.frontmatter.phases.has_value())not attributedREQUIRE(identity.frontmatter.phases->size() == 2)not attributedREQUIRE(identity.frontmatter.phases->count("default") == 1)not attributedREQUIRE(identity.frontmatter.phases->count("thinking") == 1)not attributedREQUIRE(think.temperature == Catch::Approx(0.6f))not attributedREQUIRE(think.enable_thinking == true)not attributedREQUIRE(identity.frontmatter.benchmark.has_value())not attributedREQUIRE(identity.frontmatter.benchmark->prompts.size() == 1)not attributedREQUIRE(identity.frontmatter.benchmark->prompts[0] .prompt.find("REST API") != std::string::npos)not attributedREQUIRE(identity.body.find("software engineer") != 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
Load identity file→WHEN→load_identity→test_data→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 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-API-012 inferred
- REQ-TYPE-005 inferred