testStore<T extends CacheStore> function
void
testStore<T extends CacheStore>(})
Default store test
newTestContext
: The context buildertypes
: The type/generator maptests
: The test set
Implementation
void testStore<T extends CacheStore>(TestContextBuilder<T> newTestContext,
{Map<TypeTest, Function>? types, Set<StoreTest> tests = _storeTests}) {
for (var entry in (types ?? _storeTypeTests).entries) {
test('Store: ${EnumToString.convertToString(entry.key)}', () async {
await testStoreWith<T>(newTestContext(entry.value()), tests: tests);
});
}
}