Module testutil

Module testutil 

Source
Expand description

Utilities for writing tests that interact with input events.

Structs§

TestContext
Context for a EventHandler based test.

Functions§

create_event_reader
Create an event reader that will map the provided events to the internal representation of the events. This allows for mocking of event input when testing at the highest level of the application.
create_test_keybindings
Create a mocked version of KeyBindings.
with_event_handler
Provide an EventHandler instance for use within a test.