testStoreWith<T extends CacheStore> function
Future<void>
testStoreWith<T extends CacheStore>(
- TestContext<
T> ctx, { - Set<
StoreTest> tests = _storeTests,
Entry point for the store testing harness. It delegates most of the
construction to user provided functions that are responsible for the
CacheStore
creation, and the generation of testing values (with a provided
ValueGenerator instance). They are encapsulated in provided TestContext object
ctx
: the test contexttests
: The set of tests
Implementation
Future<void> testStoreWith<T extends CacheStore>(TestContext<T> ctx,
{Set<StoreTest> tests = _storeTests}) async {
for (var test in _getTests<T>()) {
await test(ctx).then(ctx.deleteStore);
}
}