Storage C ABI rejects every NULL-handle entry-point

Tests › tests/unit/storage/c_interface_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/storage/c_interface_test.cpp:442 · its file's page

What it checks (11)

  1. REQUIRE(entropic_storage_create_conversation( nullptr, "x", nullptr, nullptr) == nullptr) observes entropic_storage_create_conversation
  2. REQUIRE(entropic_storage_save_conversation( nullptr, "id", "[]") == ENTROPIC_ERROR_INVALID_ARGUMENT) observes entropic_storage_save_conversation
  3. REQUIRE(entropic_storage_load_conversation( nullptr, "id", &out) == ENTROPIC_ERROR_INVALID_ARGUMENT) observes entropic_storage_load_conversation
  4. REQUIRE(entropic_storage_list_conversations( nullptr, 10, 0, &out) == ENTROPIC_ERROR_INVALID_ARGUMENT) observes entropic_storage_list_conversations
  5. REQUIRE(entropic_storage_search_conversations( nullptr, "q", 10, &out) == ENTROPIC_ERROR_INVALID_ARGUMENT) observes entropic_storage_search_conversations
  6. REQUIRE(entropic_storage_delete_conversation( nullptr, "id") == ENTROPIC_ERROR_INVALID_ARGUMENT) observes entropic_storage_delete_conversation
  7. REQUIRE(entropic_storage_create_delegation( nullptr, "p", "f", "t", "task", 1, &out) == ENTROPIC_ERROR_INVALID_ARGUMENT) observes entropic_storage_create_delegation
  8. REQUIRE(entropic_storage_complete_delegation( nullptr, "id", "ok", "x") == ENTROPIC_ERROR_INVALID_ARGUMENT) observes entropic_storage_complete_delegation
  9. REQUIRE(entropic_storage_get_delegations( nullptr, "p", &out) == ENTROPIC_ERROR_INVALID_ARGUMENT) observes entropic_storage_get_delegations
  10. REQUIRE(entropic_storage_save_snapshot( nullptr, "id", "[]") == ENTROPIC_ERROR_INVALID_ARGUMENT) observes entropic_storage_save_snapshot
  11. REQUIRE(entropic_storage_get_stats(nullptr, &out) == ENTROPIC_ERROR_INVALID_ARGUMENT) observes entropic_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

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.

Storage C ABI rejects every NULL-handle entry-point · 11 checksentropic_storage_complete_delegationREQ-ABI-001 · inferredentropic_storage_complete_delegationREQ-ABI-002 · inferredWHENfailure_detailREQ-API-012 · inferredentropic_storage_get_delegationsget_delegationsREQ-SAFE-001 · inferredentropic_storage_complete_delegationcomplete_delegationexecuteREQ-STOR-002 · inferredentropic_storage_create_conversationREQ-STOR-003 · inferredentropic_storage_delete_conversationREQ-STOR-004 · inferredentropic_storage_complete_delegationREQ-STOR-005 · inferred
Also reaches 8 requirements

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