macro_rules! count_category {
($actions:expr, $category:expr) => { ... };
}Expand description
Count how many actions belong to a specific category.
This requires the action type to implement ActionCategory.
§Example
ⓘ
use tui_dispatch::testing::count_category;
let actions = harness.drain_emitted();
assert_eq!(count_category!(actions, "search"), 3);