macro_rules! find_emitted { ($actions:expr, $pattern:pat $(if $guard:expr)?) => { ... }; }
Find and return the first action matching a pattern.
use tui_dispatch::testing::find_emitted; let actions = harness.drain_emitted(); if let Some(Action::SetValue(v)) = find_emitted!(actions, Action::SetValue(_)) { assert_eq!(*v, 42); }