CaptureState class

Per-file mutable buffer used by runCapture to collect captured tests.

The aggregator builds one CaptureState per *_test.dart, runs the generated _testeadorCapture$<hash>() entry-point under it, and harvests captured.

Constructors

CaptureState({required String packageName, required String sourceUri})
Builds a fresh state for the file living at sourceUri inside the packageName package.

Properties

captured List<CapturedTest>
Tests collected so far, in declaration order.
final
hashCode int
The hash code for this object.
no setterinherited
packageName String
Owning package of the source file being captured.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceUri String
Package-relative URI of the source file, e.g. test/foo_test.dart.
final

Methods

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