Create a new (Test:class) with a given implementation.
You probably don't want to instantiate this class directly, instead you can register tests with (Suite:class).(addTest:2). You can also register (Test:class) instances with (Suite:class).(addTest:1).
const test = new Test(() => 'a' + 'b');
The implementation function of the test
Readonly
histogramExecution times for this (Test:class)'s implementation.
Runs this (Test:class)'s implementation once and records the execution time in (Test:class).histogram.
The return value of this (Test:class)'s implementation
Generated using TypeDoc
Tracks a function's execution in (Test:class).histogram.
Example