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_outputin state. If unexpected fail test. - 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