Skip to main content

assert_sometimes_all

Macro assert_sometimes_all 

Source
macro_rules! assert_sometimes_all {
    ($msg:expr, [ $(($name:expr, $val:expr)),+ $(,)? ]) => { ... };
}
Expand description

Compound boolean assertion: all named bools should sometimes be true simultaneously.

Tracks a frontier (max number of simultaneously true bools). Forks when the frontier advances.

§Usage

assert_sometimes_all!("all_nodes_healthy", [
    ("node_a", node_a_healthy),
    ("node_b", node_b_healthy),
    ("node_c", node_c_healthy),
]);