PerfTestLot class Null safety

Group multiple tests and run everything, then output

Constructors

PerfTestLot(String name, {Stopwatch? stopwatch, PerfTestOut? out, PerfTestFormat? format, bool isMyStopwatch = false})
The constructor

Properties

format PerfTestFormat
Output format
late, final
hashCode int
The hash code for this object.
read-only, inherited
isMyStopwatch bool
Flag indicating that the stopwatch is started and stopped by the user rather than by this class object
final
isOutLaps bool
Flag indicating that the output value is laps rather span
read / write
maxLaps int?
Longevity of each test as a number of repeats (rather than maxSpan)
read / write
maxNameWidth int
Maximum test name width (calculated)
read / write
maxRatioWidth int
Maximum ratio display width (calculated)
read / write
maxSpan Duration?
Longevity of each test as duration (rather than maxLaps)
read / write
maxValueWidth int
Maximum value display width (laps or span, calculated)
read / write
name String
Name of the lot (calculated)
final
out PerfTestOut
Output engine
late, final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stopwatch Stopwatch?
Stopwatch used to measure performance in every test (internal or passed by you)
late, final
tests List<PerfTestOne>
List of all singular tests
final

Methods

add(PerfTestOne test) → void
Accumulator
createRatios() → void
Calculate ratios as well as maximum widths for all columns if needed
exec({int? maxLaps, Duration? maxSpan}) Future
Execute all tests and output results (asynchronous)
execSync({int? maxLaps, Duration? maxSpan}) → void
Execute all tests and output results (synchronous)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited