CacheStoreCheck class final
One check of the contract of a CacheStore, to run in the tests of a store:
import 'package:cloud_firestore_dart/cache_store_testing.dart';
import 'package:test/test.dart';
void main() {
for (final CacheStoreCheck check in cacheStoreConformanceChecks) {
test(check.name, () => check.run(() => MyStore(newEmptyFile())));
}
}
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
CacheStore newStore()) → Future< void> -
Runs the check on a store that
newStorecreates over empty storage. The check opens the store, and closes it at the end. It throws a StateError that says what is wrong when the store breaks the contract. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited