gh#201: read_file numbers every line and pages long files

Tests › tests/unit/mcp/servers/filesystem_contract_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/servers/filesystem_contract_test.cpp:129 · its file's page

What it checks (10)

  1. CHECK(out["path"] == "ten.txt") observes call via out
  2. CHECK(out["total"] == 10) observes call via out
  3. CHECK(out["lines"][0] == json{{"line", 1}, {"content", "line 1"}}) observes call via out
  4. REQUIRE(out["truncated"] == true) observes call via out
  5. CHECK(next == 1 + static_cast<long>(out["lines"].size())) observes call via out
  6. CHECK(more["lines"][0]["line"] == next) observes call via more
  7. REQUIRE(out["lines"].size() == 2) observes call via out
  8. CHECK(out["lines"][1] == json{{"line", 10}, {"content", "line 10"}}) observes call via out
  9. CHECK(out["truncated"] == false) observes call via out
  10. CHECK_FALSE(out.contains("next_offset")) observes call via out

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#201: read_file numbers every line and pages long files→write→make→call→REQUIRE→require_codes_exercised

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#201: read_file numbers every line and pages long files · 10 checksmakeFilesystemServerREQ-MCP-001 · inferredmake… 3 calls …load_tool_definitionREQ-MCP-013 · inferredmakeFilesystemServerREQ-MCP-021 · inferredmakeFilesystemServerREQ-MCP-022 · inferred
Also reaches 4 requirements

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