Bounded global allocator — verification¶
Test cases verifying Bounded global allocator (FEAT_0040). Each test directive
:verifies: one of the requirements REQ_0300..REQ_0304.
Goal. Confirm that the allocator (a) returns a non-null
pointer for the first Fixture. A Steps.
Expected outcome. All assertions hold. |
Goal. Confirm that repeated allocate-then-free cycles never
leak a block: after Fixture. Steps.
Expected outcome. Bitmap returns to an all-free state after
each balanced |
Goal. Confirm Fixture. Steps.
Expected outcome. Step 3 panics; cargo-test reports the
|
Goal. Confirm Fixture. Steps.
Expected outcome. All counter reads match the expected values exactly. |
Goal. Confirm concurrent Fixture. Steps.
Expected outcome. No double-allocation observed; counters balance; the allocator is left in the all-free state. Optionally — gate a |