Env blocklist filters dangerous variables

Tests › tests/unit/mcp/mcp_json_discovery_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_json_discovery_test.cpp:113 · its file's page

What it checks (9)

  1. REQUIRE(is_blocked_env_var("LD_PRELOAD")) observes is_blocked_env_var
  2. REQUIRE(is_blocked_env_var("LD_LIBRARY_PATH")) observes is_blocked_env_var
  3. REQUIRE(is_blocked_env_var("PATH")) observes is_blocked_env_var
  4. REQUIRE(is_blocked_env_var("HOME")) observes is_blocked_env_var
  5. REQUIRE(is_blocked_env_var("ENTROPIC_CONFIG")) observes is_blocked_env_var
  6. REQUIRE(is_blocked_env_var("DYLD_INSERT_LIBRARIES")) observes is_blocked_env_var
  7. REQUIRE_FALSE(is_blocked_env_var("API_KEY")) observes is_blocked_env_var
  8. REQUIRE_FALSE(is_blocked_env_var("NODE_ENV")) observes is_blocked_env_var
  9. REQUIRE_FALSE(is_blocked_env_var("MY_VAR")) observes is_blocked_env_var

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

Env blocklist filters dangerous variables→REQUIRE→is_blocked_env_var

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.

Env blocklist filters dangerous variables · 9 checksis_blocked_env_varREQ-MCP-025 · inferred
Also reaches 1 requirement

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