cacheStoreConformanceChecks top-level property
The checks of the contract of a CacheStore (see CacheStoreCheck): reads, writes and deletes, the byte order of the keys, range scans (bounds, reverse order, limit), writes of puts and deletes together, reads that run at the same time, keys and values kept byte for byte (also empty values), large writes, and data that is still there after the store is closed and opened again.
Implementation
final List<CacheStoreCheck> cacheStoreConformanceChecks =
List<CacheStoreCheck>.unmodifiable(<CacheStoreCheck>[
const CacheStoreCheck._('get, write and delete', _getWriteDelete),
const CacheStoreCheck._(
'keys are ordered by their unsigned bytes',
_keyOrder,
),
const CacheStoreCheck._(
'scan honours its bounds, the reverse order and the limit',
_scanRanges,
),
const CacheStoreCheck._(
'a write applies its puts and deletes together',
_mixedWrite,
),
const CacheStoreCheck._(
'reads can run at the same time',
_concurrentReads,
),
const CacheStoreCheck._(
'keys and values are kept byte for byte, empty values included',
_bytes,
),
const CacheStoreCheck._(
'a write of many keys is kept and scanned in pages',
_manyKeys,
),
const CacheStoreCheck._(
'the data is kept when the store is closed and opened again',
_reopen,
),
]);