testCache<T extends Store<CacheInfo, CacheEntry> > function
void
testCache<T extends Store<CacheInfo, CacheEntry> >(})
Default cache test
newCacheTestContext
: The context buildertypes
: The type/generator mapcacheTests
: The test set
Implementation
void testCache<T extends Store<CacheInfo, CacheEntry>>(
CacheTestContextBuilder<T> newCacheTestContext,
{Map<TypeTest, Function>? types,
Set<CacheTest> cacheTests = _cacheTests}) {
for (var typeTest in (types ?? _typeTests).entries) {
test('Cache: ${typeTest.key.name}', () async {
await testCacheWith<T>(newCacheTestContext(typeTest.value()),
cacheTests: cacheTests);
});
}
}