testStoreWith<I extends Info, E extends Entry<I>, T extends Store<I, E>> function

Future<void> testStoreWith<I extends Info, E extends Entry<I>, T extends Store<I, E>>(
  1. TestContext<I, E, T> ctx, {
  2. 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 Store creation, and the generation of testing values (with a provided ValueGenerator instance). They are encapsulated in provided TestContext object

  • ctx: the test context
  • tests: The set of tests

Implementation

Future<void>
    testStoreWith<I extends Info, E extends Entry<I>, T extends Store<I, E>>(
        TestContext<I, E, T> ctx,
        {Set<StoreTest> tests = _storeTests}) async {
  for (var test in _getTests<I, E, T>(tests: tests)) {
    await test(ctx).then(ctx.deleteStore);
  }
}