coerce_string_typed_args restores string typing per schema

Tests › tests/unit/inference/adapter_base_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/adapter_base_test.cpp:392 · its file's page

What it checks (8)

  1. REQUIRE(aj.find(R"("grade_level":"3")") != std::string::npos) not attributed
  2. REQUIRE(aj.find(R"("grade_level":3)") == std::string::npos) not attributed
  3. REQUIRE(aj.find(R"("age":9)") != std::string::npos) not attributed
  4. REQUIRE(aj.find("Tamsin") != std::string::npos) not attributed
  5. REQUIRE(calls[0].arguments.at("grade_level") == "3") not attributed
  6. REQUIRE(calls2[0].arguments_json == tc.arguments_json) not attributed
  7. REQUIRE(calls3[0].arguments_json == R"({"x":5})") not attributed
  8. REQUIRE(empty.empty()) 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

coerce_string_typed_args restores string typing per schema→coerce_string_typed_args→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.

coerce_string_typed_args restores string typing per schema · 8 checkscoerce_string_typed_argsREQ-INFER-012 · inferred
Also reaches 1 requirement

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