Skip to main content

any_event

Function any_event 

pub fn any_event() -> impl Strategy<Value = Event>
Available on crate feature proptest only.
Expand description

Generates an Event: a type, a tag set, a small payload, and metadata half the time.

Two value edges are deliberately excluded, and both are phase 3’s stage 6 rather than an oversight: the empty payload, and metadata: Some(<empty>) as distinct from None. Whether those two pairs are distinguishable through a store is not settled, and a generator that produced them would be asserting an answer through model’s round-trip comparison before the clause that owns the question was written.

§Panics

Panics during generation if a sampled type is invalid. Test-only helper.