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 T using the provided instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
instance → T
The mock or stub instance to resolve for type.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type
The dependency runtime type to override.
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