gh#205: streaming under a tier refuses what it cannot run¶
Tests › tests/unit/api/run_session_streaming_as_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/api/run_session_streaming_as_test.cpp:35 · its file's page
What it checks (7)
CHECK(entropic_run_session_streaming_as( h.h, "s", nullptr, "hi", noop_token, nullptr, nullptr) == ENTROPIC_ERROR_INVALID_ARGUMENT)observesentropic_run_session_streaming_asCHECK(entropic_run_session_streaming_as( h.h, "s", "no_such_tier", "hi", noop_token, nullptr, nullptr) == ENTROPIC_ERROR_IDENTITY_NOT_FOUND)observesentropic_run_session_streaming_asREQUIRE(err != nullptr)not attributedCHECK(std::string(err).find("no_such_tier") != std::string::npos)not attributedCHECK(entropic_run_session_streaming_as( h.h, "s", "lead", nullptr, noop_token, nullptr, nullptr) == ENTROPIC_ERROR_INVALID_ARGUMENT)observesentropic_run_session_streaming_asCHECK(entropic_run_session_streaming_as( h.h, "s", "lead", "hi", nullptr, nullptr, nullptr) == ENTROPIC_ERROR_INVALID_ARGUMENT)observesentropic_run_session_streaming_asCHECK(entropic_run_session_streaming_as( nullptr, "s", "lead", "hi", noop_token, nullptr, nullptr) != ENTROPIC_OK)observesentropic_run_session_streaming_as
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#205: streaming under a tier refuses what it cannot run→entropic_run_session_streaming_as→entropic_run_session_streaming_as→entropic_last_error→entropic_last_error→REQUIRE→noop_tokenWhat 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.
and 1 more requirement paths, listed below.
Also reaches 13 requirements
Its run touches their code; that is reach, not proof.
- REQ-ABI-001 inferred
- REQ-API-003 inferred
- REQ-API-005 inferred
- REQ-API-007 inferred
- REQ-API-009 inferred
- REQ-API-012 inferred
- REQ-IDEN-001 inferred
- REQ-LOOP-001 inferred
- REQ-LOOP-008 inferred
- REQ-LOOP-009 inferred
- REQ-LOOP-010 inferred
- REQ-MCP-027 inferred
- REQ-SAFE-001 inferred