Testing module

cleanup

procedure · 1 overloadsince 0.28.0Source

Calls callback(data) when the test ends, after its body; the last registered runs first.

cleanup :: (t: *Test, callback: (data: *void), data: *void = null)

Calls callback(data) when the test ends, after its body; the last registered runs first.

Parameters

t: *Test
the running test.
callback: (data: *void)
called with data when the test ends.
data: *void
passed to callback.

See also