ConformanceCapabilities
Defined in: src/storage/testing/conformance.ts:59
The optional capabilities the driver under test implements. Declare each one: a capability case
checks the declaration against the storage itself, so a driver that implements compareAndSwap
or watch without declaring it (or declares one it lacks) fails instead of silently skipping
cases. Pass false for a capability the driver doesn’t have.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
compareAndSwap? |
boolean |
Run the compare-and-swap cases (the storage must implement compareAndSwap). |
src/storage/testing/conformance.ts:61 |
padSpaceKeys? |
boolean |
The key column ignores trailing spaces (MySQL utf8mb4_bin, PAD SPACE, the products’ default collation for existing tables). The trailing-space case then expects the colliding write to be refused with KeyCollisionError instead of both keys coexisting. |
src/storage/testing/conformance.ts:74 |
watch? |
| boolean | { removals?: boolean; settleMs?: number; } |
Run the watch cases (the storage must implement watch). settleMs is how long to wait for notifications to arrive (default 50 ms). removals: false is for watchers that report every change as update (a withWatch storage, whose notifier gives only a key): a removal must then still produce an event, of any type. Default true. |
src/storage/testing/conformance.ts:68 |