Storage C ABI rejects every NULL-handle entry-point¶
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:442 · its file's page
What it checks (11)
REQUIRE(entropic_storage_create_conversation( nullptr, "x", nullptr, nullptr) == nullptr)observesentropic_storage_create_conversationREQUIRE(entropic_storage_save_conversation( nullptr, "id", "[]") == ENTROPIC_ERROR_INVALID_ARGUMENT)observesentropic_storage_save_conversationREQUIRE(entropic_storage_load_conversation( nullptr, "id", &out) == ENTROPIC_ERROR_INVALID_ARGUMENT)observesentropic_storage_load_conversationREQUIRE(entropic_storage_list_conversations( nullptr, 10, 0, &out) == ENTROPIC_ERROR_INVALID_ARGUMENT)observesentropic_storage_list_conversationsREQUIRE(entropic_storage_search_conversations( nullptr, "q", 10, &out) == ENTROPIC_ERROR_INVALID_ARGUMENT)observesentropic_storage_search_conversationsREQUIRE(entropic_storage_delete_conversation( nullptr, "id") == ENTROPIC_ERROR_INVALID_ARGUMENT)observesentropic_storage_delete_conversationREQUIRE(entropic_storage_create_delegation( nullptr, "p", "f", "t", "task", 1, &out) == ENTROPIC_ERROR_INVALID_ARGUMENT)observesentropic_storage_create_delegationREQUIRE(entropic_storage_complete_delegation( nullptr, "id", "ok", "x") == ENTROPIC_ERROR_INVALID_ARGUMENT)observesentropic_storage_complete_delegationREQUIRE(entropic_storage_get_delegations( nullptr, "p", &out) == ENTROPIC_ERROR_INVALID_ARGUMENT)observesentropic_storage_get_delegationsREQUIRE(entropic_storage_save_snapshot( nullptr, "id", "[]") == ENTROPIC_ERROR_INVALID_ARGUMENT)observesentropic_storage_save_snapshotREQUIRE(entropic_storage_get_stats(nullptr, &out) == ENTROPIC_ERROR_INVALID_ARGUMENT)observesentropic_storage_get_stats
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 C ABI rejects every NULL-handle entry-point→WHEN→REQUIRE→entropic_storage_create_conversation→entropic_storage_create_conversation→entropic_storage_save_conversation→entropic_storage_save_conversation→entropic_storage_load_conversation→entropic_storage_load_conversation→entropic_storage_list_conversations→entropic_storage_list_conversations→entropic_storage_search_conversations→entropic_storage_search_conversations→entropic_storage_delete_conversation→entropic_storage_delete_conversation→entropic_storage_create_delegation→entropic_storage_create_delegation→entropic_storage_complete_delegation→entropic_storage_complete_delegation→entropic_storage_get_delegations→entropic_storage_get_delegations→entropic_storage_save_snapshot→entropic_storage_save_snapshot→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 8 requirements
Its run touches their code; that is reach, not proof.
- REQ-ABI-001 inferred
- REQ-ABI-002 inferred
- REQ-API-012 inferred
- REQ-SAFE-001 inferred
- REQ-STOR-002 inferred
- REQ-STOR-003 inferred
- REQ-STOR-004 inferred
- REQ-STOR-005 inferred