testCache<T extends CacheStore> function
void
testCache<T extends CacheStore>(})
Default cache test
newTestContext
: The context buildertypes
: The type/generator maptests
: The test set
Implementation
void testCache<T extends CacheStore>(TestContextBuilder<T> newTestContext,
{Map<TypeTest, Function>? types, Set<CacheTest> tests = _cacheTests}) {
for (var entry in (types ?? _typeTests).entries) {
test('Cache: ${EnumToString.convertToString(entry.key)}', () async {
await testCacheWith<T>(newTestContext(entry.value()), tests: tests);
});
}
}