gh#165: get -> set -> get is byte-identical, metadata included

Tests › tests/unit/api/json_serializers_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/api/json_serializers_test.cpp:354 · its file's page

What it checks (12)

  1. CHECK(second == first) observes serialize_messages via first
  2. REQUIRE(restored.size() == 2) observes parse_messages_json via restored
  3. CHECK(restored[1].metadata.at("tool_name") == "filesystem.read") observes parse_messages_json via restored
  4. CHECK(restored[1].metadata.at("is_context_anchor") == "true") observes parse_messages_json via restored
  5. REQUIRE(restored[1].content_parts.size() == 2) observes parse_messages_json via restored
  6. CHECK(restored[1].content_parts[0].type == entropic::ContentPartType::TEXT) observes parse_messages_json via restored
  7. CHECK(restored[1].content_parts[0].text == "describe this") observes parse_messages_json via restored
  8. CHECK(img.type == entropic::ContentPartType::IMAGE) not attributed
  9. CHECK(img.image_path == "/tmp/foo.png") not attributed
  10. CHECK(img.image_url == "https://example.invalid/foo.png") not attributed
  11. CHECK(img.width == 512) not attributed
  12. CHECK(img.height == 384) 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#165: get -> set -> get is byte-identical, metadata included→make_msg→rich_message→WHEN→serialize_messages→parse_messages_json→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.

gh#165: get -> set -> get is byte-identical, metadata included · 12 checksWHENfailure_detailREQ-API-012 · inferredserialize_messagesREQ-LOOP-010 · inferredserialize_messagesREQ-SAFE-001 · inferredparse_messages_jsonREQ-TYPE-006 · inferred
Also reaches 4 requirements

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