C API full conversation lifecycle¶
Tests › tests/unit/storage/c_interface_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/storage/c_interface_test.cpp:112 · its file's page
What it checks (6)
REQUIRE(conv_id != nullptr)not attributedREQUIRE(err == ENTROPIC_OK)observesentropic_storage_save_conversationviaerrREQUIRE(err == ENTROPIC_OK)observesentropic_storage_load_conversationviaerrREQUIRE(result != nullptr)not attributedREQUIRE(j["messages"].size() == 1)not attributedREQUIRE(j["messages"][0]["content"] == "Hello from C")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
C API full conversation lifecycle→WHEN→entropic_storage_create_conversation→entropic_storage_create_conversation→REQUIRE→entropic_storage_save_conversation→entropic_storage_save_conversation→entropic_storage_load_conversation→entropic_storage_load_conversationWhat 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.
Also reaches 5 requirements
Its run touches their code; that is reach, not proof.
- REQ-ABI-001 inferred
- REQ-ABI-002 inferred
- REQ-API-012 inferred
- REQ-STOR-002 inferred
- REQ-STOR-003 inferred