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_outputin state. If unexpected fail test. - run_
harness - Runs a test by building the task using
build_fnand then passing it theinputevents and testing the make sure all of theexpected_outputevents are seen