Module harness

Source
Expand description

Defines the types to run unit tests for a task.

Structs§

TestHarnessState
The state for the test harness task. Keeps track of which events and how many we expect to get

Functions§

check_event 🔒
Handles an event for the Test Harness Task. If the event is expected, remove it from the expected_output in state. If unexpected fail test.
run_harness
Runs a test by building the task using build_fn and then passing it the input events and testing the make sure all of the expected_output events are seen