Serialize all roundtrip

Tests › tests/unit/mcp/mcp_authorization_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/mcp/mcp_authorization_test.cpp:124 · its file's page

What it checks (4)

  1. REQUIRE(mgr2.deserialize_all(json)) observes deserialize_all
  2. REQUIRE(mgr2.check_access("lead", "anything", MCPAccessLevel::WRITE)) observes check_access
  3. REQUIRE(mgr2.check_access("eng", "filesystem.read_file", MCPAccessLevel::READ)) observes check_access
  4. REQUIRE_FALSE(mgr2.check_access("eng", "filesystem.write_file", MCPAccessLevel::WRITE)) observes check_access

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

Serialize all roundtrip→register_identity→grant→serialize_all→REQUIRE→deserialize_all→check_access

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.

Serialize all roundtrip · 4 checkscheck_accessREQ-MCP-010 · inferredcheck_accessREQ-MCP-011 · inferred
Also reaches 2 requirements

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