Skip to main content

for_each_watermark_rule

Macro for_each_watermark_rule 

Source
macro_rules! for_each_watermark_rule {
    ($($callback:tt)+) => { ... };
}
Expand description

Hands the complete watermark rule set to $callback.

This family’s single enumeration (CF-22), beside the rule it names. No mounting macro reads it: a projection adapter calls the rule over its own fixture.

§Examples

macro_rules! rule_names {
    ($($name:ident),* $(,)?) => { [ $( stringify!($name) ),* ] };
}

let names = happenstance_sync_testkit::for_each_watermark_rule!(rule_names);
assert_eq!(names, ["watermark_advances_transactionally_with_a_read_model"]);