TestContext<T extends CacheStore> class abstract

Base class for all the test contexts.

Constructors

TestContext(ValueGenerator generator, {dynamic fromEncodable(Map<String, dynamic>)?})
Builds a new TestContext

Properties

fromEncodable → (dynamic Function(Map<String, dynamic>)?)
Function called on encodable object to obtain the underlining type
final
generator ValueGenerator
A value generator
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteStore(T store) Future<void>
Deletes a store
newCache(T store, {String? name, ExpiryPolicy? expiryPolicy, KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, CacheLoader? cacheLoader, Clock? clock, EventListenerMode? eventListenerMode}) → Cache
Creates a new cache
newStore() Future<T>
Creates a new store
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