BloomTestOverride<T> class
Represents a typed test override instance to be injected into a BloomTestScope.
Pairs a runtime type with a mock, stub, or fake instance to supersede production dependencies during test runs.
Example
final override = BloomTestOverride<DatabaseService>(MockDatabaseService());
Constructors
- BloomTestOverride(T instance)
-
Creates a test override for type
Tusing the providedinstance.
Properties
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