Skip to main content

assertion_bool

Function assertion_bool 

Source
pub fn assertion_bool(
    kind: AssertKind,
    must_hit: bool,
    condition: bool,
    msg: &str,
)
Expand description

Boolean assertion backing function.

Handles Always, AlwaysOrUnreachable, Sometimes, Reachable, and Unreachable. Gets or allocates a slot, increments pass/fail counts, and triggers forking for Sometimes/Reachable assertions on first success.

This is a no-op if the assertion table is not initialized.