Selftester.requireTriggeredByTimer

Checks that the last fiber invocation was triggered by a timer.

struct Selftester
void
requireTriggeredByTimer
(
const string file = __FILE__
,
const size_t line = __LINE__
)

Parameters

file string

The file the test is in.

line size_t

The line the test is on.

Throws

Exception if the fiber was last called due to a scheduled timer firing.