PerfTestLot class

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
latefinal
hashCode int
The hash code for this object.
no setterinherited
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
getter/setter pair
maxLaps int?
Longevity of each test as a number of repeats (rather than maxSpan)
getter/setter pair
maxNameWidth int
Maximum test name width (calculated)
getter/setter pair
maxRatioWidth int
Maximum ratio display width (calculated)
getter/setter pair
maxSpan Duration?
Longevity of each test as duration (rather than maxLaps)
getter/setter pair
maxValueWidth int
Maximum value display width (laps or span, calculated)
getter/setter pair
name String
Name of the lot (calculated)
final
out PerfTestOut
Output engine
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopwatch Stopwatch?
Stopwatch used to measure performance in every test (internal or passed by you)
latefinal
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 nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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