Expand description
Defines the types to run unit tests for a task.
Structs§
- Test
Harness State - 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 theinput
events and testing the make sure all of theexpected_output
events are seen