gh#148: use_mlock on an oversized model is refused, not flipped

Tests › tests/unit/inference/partial_offload_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/partial_offload_test.cpp:214 · its file's page

What it checks (6)

  1. CHECK(entropic::mlock_refused(true, kQwen36Bytes, 15, kLimit)) observes mlock_refused
  2. CHECK_FALSE( entropic::mlock_refused(false, kQwen36Bytes, 15, kLimit)) observes mlock_refused
  3. CHECK_FALSE( entropic::mlock_refused(true, kQwen36Bytes, -1, kLimit)) observes mlock_refused
  4. CHECK_FALSE(entropic::mlock_refused( true, kQwen36Bytes, 15, entropic::kMemlockUnlimited)) observes mlock_refused
  5. CHECK_FALSE(entropic::mlock_refused(true, kSmallModelBytes, 0, 8ull * 1024 * 1024)) observes mlock_refused
  6. CHECK_FALSE(entropic::mlock_refused( true, entropic::kLargeModelThresholdBytes, 15, kLimit)) observes mlock_refused

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

gh#148: use_mlock on an oversized model is refused, not flipped→WHEN→mlock_refused

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.

gh#148: use_mlock on an oversized model is refused, not flipped · 6 checksWHENfailure_detailREQ-API-012 · inferredmlock_refusedREQ-INFER-019 · inferred
Also reaches 2 requirements

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