Storage handle saves snapshot + queries stats through the C ABI¶
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:382 · its file's page
What it checks (4)
REQUIRE(err == ENTROPIC_OK)observesentropic_storage_save_snapshotviaerrREQUIRE(err == ENTROPIC_OK)observesentropic_storage_get_statsviaerrREQUIRE(stats != nullptr)not attributedREQUIRE(j.contains("total_conversations"))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
Storage handle saves snapshot + queries stats through the C ABI→entropic_storage_create_conversation→entropic_storage_create_conversation→entropic_storage_save_conversation→entropic_storage_save_conversation→WHEN→entropic_storage_save_snapshot→entropic_storage_save_snapshot→REQUIRE→entropic_storage_get_stats→entropic_storage_get_statsWhat 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 6 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
- REQ-STOR-004 inferred