Skip to main content

assert_output_event_count

Function assert_output_event_count 

Source
pub fn assert_output_event_count<P: PluginExport>(
    result: &DriverResult<P>,
    n: usize,
)
Expand description

Assert exactly n output events were emitted by the plugin across the run. Requires .capture_output_events(true) on the driver.

ยงPanics

Panics if result.output_events.len() != n.