Skip to main content

query_items_are_or

Function query_items_are_or 

pub async fn query_items_are_or<F: Fixture>(
    open: impl AsyncFn() -> F,
) -> RuleOutcome
Expand description

Items within a query combine with OR.

The first event matches both items, and that is deliberate. An OR implemented as a UNION ALL of one statement per item returns it twice, and with three mutually exclusive events no result-set comparison here could ever see that. The rule that owns duplication is duplicate_items_do_not_duplicate_events; this arrangement is what lets it be written against the same fixture rather than needing its own.