Base class defaults to no capabilities¶
Tests › tests/unit/inference/backend_capabilities_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/inference/backend_capabilities_test.cpp:136 · its file's page
What it checks (13)
REQUIRE_FALSE(backend.supports(C::KV_CACHE))not attributedREQUIRE_FALSE(backend.supports(C::HIDDEN_STATE))not attributedREQUIRE_FALSE(backend.supports(C::STREAMING))not attributedREQUIRE_FALSE(backend.supports(C::RAW_COMPLETION))not attributedREQUIRE_FALSE(backend.supports(C::GRAMMAR))not attributedREQUIRE_FALSE(backend.supports(C::LORA_ADAPTERS))not attributedREQUIRE_FALSE(backend.supports(C::MULTI_SEQUENCE))not attributedREQUIRE_FALSE(backend.supports(C::TOKENIZER))not attributedREQUIRE_FALSE(backend.supports(C::LOG_PROBS))not attributedREQUIRE_FALSE(backend.supports(C::VISION))not attributedREQUIRE_FALSE(backend.supports(C::SPECULATIVE_DECODING))not attributedREQUIRE_FALSE(backend.supports(C::PROMPT_CACHING))not attributedREQUIRE(caps.empty())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
Base class defaults to no capabilities→WHEN→REQUIREWhat 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.