InMemoryRecordingStore class

In-memory store; useful for tests of the eval subsystem itself and for short-lived runs.

Implemented types

Constructors

InMemoryRecordingStore()

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

flush() Future<void>
Force any buffered writes to flush. Called by the runner before exiting.
override
get(String hash) Future<ModelMessage?>
Returns the recorded response for hash, or null if no recording.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String hash, ModelMessage response) Future<void>
Stores a new recording under hash. If a recording already exists, implementations may overwrite or no-op (FileRecordingStore overwrites — useful when re-recording after a known-broken capture).
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited