Module hotshot_task_impls::harness
source · Expand description
Defines the types to run unit tests for a task.
Structs§
- The state for the test harness task. Keeps track of which events and how many we expect to get
Functions§
- 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. - 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