with_event_handler

Function with_event_handler 

Source
pub fn with_event_handler<C, TestKeybinding: CustomKeybinding, CustomEvent: CustomEvent>(
    custom_key_bindings: TestKeybinding,
    events: &[Event<CustomEvent>],
    callback: C,
)
where C: FnOnce(TestContext<TestKeybinding, CustomEvent>),
Expand description

Provide an EventHandler instance for use within a test.