LocalTest class

A test in this isolate.

Inheritance

Constructors

LocalTest(String name, Metadata metadata, FutureOr<void> _body(), {Trace? trace, TestLocation? location, bool guarded = true, bool isScaffoldAll = false})
Creates a new LocalTest.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isScaffoldAll → bool
Whether this is a test defined using setUpAll() or tearDownAll().
final
location → TestLocation?
An optional location provided to test() or group() to support test frameworks like pkg:test_reflective_loader where the test/group location might not be in trace at the time test() or group() are called.
final
metadata → Metadata
The metadata for the entry, including the metadata from any containing Groups.
final
name → String
The name of the entry, including the prefixes from any containing Groups.
final
parent ↔ Group?
The parent of this entry.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
trace → Trace?
The stack trace for the call to test() or group() that defined this entry, or null if the entry was defined in a different way.
final

Methods

clone() → Test
Returns a clone of this object without the internal parent reference set so that it may be attached to a new tree.
override
filter(bool callback(Test)) → Test?
Returns a copy of this with all tests that don't match callback removed.
override
forPlatform(SuitePlatform platform) → Test?
Returns a copy of this with all platform-specific metadata resolved.
override
load(Suite suite, {Iterable<Group>? groups}) → LiveTest
Loads a single runnable instance of this test.
override
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