Skip to main content

Module testing

Module testing 

Source
Expand description

A provider that answers each task by its id, for testing anything built on tasks.

Tasks run concurrently, so a queue answered in call order is a race. ScriptedTasks reads the task id every request carries under TASK_LABEL and answers from that task’s own queue. An exact call id (u1/extract#repair1) is looked up before its task (u1/extract), so a repair or a vote can be scripted apart from the first call.

Structs§

ScriptedTasks
Answers each task from its own queue of JSON documents.