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

hashCode → int
The hash code for this object.
no setterinherited
name → String
What the check verifies, as a test name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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 newStore creates 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