Registry class
In-memory index of every captured test produced by the codegen.
Consumers use byFqId (driven by the generated TestInjector.<id>
getters), byName, byTags, and byRegExp. Lookups are linear; the table
is expected to stay small (≤ a few thousand entries).
Constructors
-
Registry(List<
CapturedTest> _tests) - Builds a registry from the codegen-produced list of captured tests.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
byFqId(
String fqId) → TestStep - Looks up by fully-qualified id. Used by the generated static getters, where the id is known at compile time.
-
byName(
String spec) → List< TestStep> - Looks up tests by partial id. Accepted forms:
-
byRegExp(
Pattern pattern) → List< TestStep> -
Returns every test whose
namematchespattern. -
byTags(
String tag) → List< TestStep> -
Returns every test whose CapturedTest.tags contains
tag. -
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