inference C ABI: exception paths + parse_params field sweep

Tests › tests/unit/inference/inference_c_api_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/inference/inference_c_api_test.cpp:748 · its file's page

What it checks (16)

  1. REQUIRE(entropic_inference_load(h, "{}") == ENTROPIC_OK) observes entropic_inference_load
  2. REQUIRE(entropic_inference_activate(h) == ENTROPIC_OK) observes entropic_inference_activate
  3. REQUIRE(entropic_inference_deactivate(h) == ENTROPIC_ERROR_INTERNAL) observes entropic_inference_deactivate
  4. REQUIRE(entropic_inference_load(h, "{}") == ENTROPIC_OK) observes entropic_inference_load
  5. REQUIRE(entropic_inference_unload(h) == ENTROPIC_ERROR_INTERNAL) observes entropic_inference_unload
  6. REQUIRE(entropic_inference_load(h, "{}") == ENTROPIC_OK) observes entropic_inference_load
  7. REQUIRE(entropic_inference_activate(h) == ENTROPIC_OK) observes entropic_inference_activate
  8. REQUIRE(entropic_inference_generate_streaming( h, "[]", "{}", [](const char*, size_t, void*) {}, nullptr, &cancel) == ENTROPIC_ERROR_GENERATE_FAILED) observes entropic_inference_generate_streaming
  9. REQUIRE(entropic_inference_load(h, "{}") == ENTROPIC_OK) observes entropic_inference_load
  10. REQUIRE(entropic_inference_activate(h) == ENTROPIC_OK) observes entropic_inference_activate
  11. REQUIRE(entropic_inference_complete(h, "p", "{}", &r) == ENTROPIC_ERROR_GENERATE_FAILED) observes entropic_inference_complete
  12. REQUIRE(entropic_inference_load(h, "{}") == ENTROPIC_OK) observes entropic_inference_load
  13. REQUIRE(entropic_inference_count_tokens(h, t, std::strlen(t)) == static_cast<int>(std::strlen(t)) / 4) observes entropic_inference_count_tokens
  14. REQUIRE(entropic_inference_load(h, "{}") == ENTROPIC_OK) observes entropic_inference_load
  15. REQUIRE(entropic_inference_activate(h) == ENTROPIC_OK) observes entropic_inference_activate
  16. REQUIRE(entropic_inference_generate( h, R"([{"role":"user","content":"hi"}])", R"({"temperature":0.5,"top_p":0.95,"top_k":40, "min_p":0.05,"repeat_penalty":1.1, "max_tokens":256,"grammar":"root ::= [a-z]+"})", &r) == ENTROPIC_OK) observes entropic_inference_generate

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.

inference C ABI: exception paths + parse_params field sweep · 16 checksentropic_inference_generate_streamingREQ-ABI-001 · inferredentropic_inference_generateREQ-INFER-001 · inferredentropic_inference_unloadunloadREQ-INFER-002 · inferredentropic_inference_completeREQ-INFER-004 · inferredentropic_inference_generate_streamingREQ-INFER-005 · inferredentropic_inference_loadREQ-INFER-017 · inferredentropic_inference_count_tokensREQ-INFER-019 · inferredentropic_inference_generate_streamingparse_messages_jsonREQ-TYPE-006 · inferred
Also reaches 8 requirements

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