LocalTest class
A test in this isolate.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isScaffoldAll → bool
-
Whether this is a test defined using
setUpAll()ortearDownAll().final - location → TestLocation?
-
An optional location provided to
test()orgroup()to support test frameworks like pkg:test_reflective_loader where the test/group location might not be in trace at the timetest()orgroup()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()orgroup()that defined this entry, ornullif the entry was defined in a different way.final
Methods
-
clone(
) → Test -
Returns a clone of this object without the internal
parentreference set so that it may be attached to a new tree.override -
filter(
bool callback(Test)) → Test? -
Returns a copy of
thiswith all tests that don't matchcallbackremoved.override -
forPlatform(
SuitePlatform platform) → Test? -
Returns a copy of
thiswith 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