Load identity file

Tests › tests/unit/prompts/prompt_parse_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/prompts/prompt_parse_test.cpp:93 · its file's page

What it checks (28)

  1. REQUIRE(err.empty()) observes load_identity via err
  2. REQUIRE(identity.frontmatter.name == "testeng") not attributed
  3. REQUIRE(identity.frontmatter.focus.size() == 2) not attributed
  4. REQUIRE(identity.frontmatter.focus[0] == "write code") not attributed
  5. REQUIRE(identity.frontmatter.examples.size() == 2) not attributed
  6. REQUIRE(identity.frontmatter.auto_chain.has_value()) not attributed
  7. REQUIRE(*identity.frontmatter.auto_chain == "lead") not attributed
  8. REQUIRE(identity.frontmatter.allowed_tools.has_value()) not attributed
  9. REQUIRE(identity.frontmatter.allowed_tools->size() == 2) not attributed
  10. REQUIRE(identity.frontmatter.temperature.has_value()) not attributed
  11. REQUIRE(*identity.frontmatter.temperature == Catch::Approx(0.15f)) not attributed
  12. REQUIRE(identity.frontmatter.max_output_tokens.has_value()) not attributed
  13. REQUIRE(*identity.frontmatter.max_output_tokens == 8192) not attributed
  14. REQUIRE(identity.frontmatter.routable == false) not attributed
  15. REQUIRE(identity.frontmatter.enable_thinking.has_value()) not attributed
  16. REQUIRE(*identity.frontmatter.enable_thinking == false) not attributed
  17. REQUIRE(identity.frontmatter.max_iterations == 42) not attributed
  18. REQUIRE(identity.frontmatter.max_tool_calls_per_turn == 7) not attributed
  19. REQUIRE(identity.frontmatter.phases.has_value()) not attributed
  20. REQUIRE(identity.frontmatter.phases->size() == 2) not attributed
  21. REQUIRE(identity.frontmatter.phases->count("default") == 1) not attributed
  22. REQUIRE(identity.frontmatter.phases->count("thinking") == 1) not attributed
  23. REQUIRE(think.temperature == Catch::Approx(0.6f)) not attributed
  24. REQUIRE(think.enable_thinking == true) not attributed
  25. REQUIRE(identity.frontmatter.benchmark.has_value()) not attributed
  26. REQUIRE(identity.frontmatter.benchmark->prompts.size() == 1) not attributed
  27. REQUIRE(identity.frontmatter.benchmark->prompts[0] .prompt.find("REST API") != std::string::npos) not attributed
  28. REQUIRE(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→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.

Load identity file · 28 checksWHENfailure_detailREQ-API-012 · inferredload_identityextract_identity_fieldsextract_string_list_optREQ-TYPE-005 · inferred
Also reaches 2 requirements

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