testVaultWith<T extends Store<VaultInfo, VaultEntry> > function
Future<void>
testVaultWith<T extends Store<VaultInfo, VaultEntry> >(
- VaultTestContext<
T> ctx, { - Set<
VaultTest> vaultTests = _vaultTests,
Entry point for the vault testing harness. It delegates most of the
construction to user provided functions that are responsible for the Store
creation,
the Vault
creation and by the generation of testing values
(with a provided ValueGenerator instance). They are encapsulated in provided VaultTestContext object
ctx
: the test contextvaultTests
: The set of tests
Implementation
Future<void> testVaultWith<T extends Store<VaultInfo, VaultEntry>>(
VaultTestContext<T> ctx,
{Set<VaultTest> vaultTests = _vaultTests}) async {
for (var test in _getVaultTests<T>(tests: vaultTests)) {
await test(ctx).then(ctx.deleteStore);
}
}