Expand description
Conformance cases for DriverStore backends (spec 3.2 §7.7, §11, §13 Q8).
| Case | Contract |
|---|---|
put_get_round_trip | A record reads back exactly as put: every field, every EffectClass, DriverSandbox and DriverIsolation variant |
put_replaces | A second put of the same driver replaces its record |
list_orders_by_id | list returns every record in driver-id byte order |
unknown_id | get of an unknown driver is None; delete answers false |
delete | delete removes the record and answers true, then false, and leaves its parks |
records_survive_a_restart | Records and parks read back through a new handle (durable backends only) |
concurrent_writers | Concurrent puts from two handles over distinct drivers and calls lose none |
park_round_trip_per_kind | A park reads back exactly as put for every kind: mrtr, task { taskId }, legacy |
parks_are_keyed_by_scope_and_call | One call id in two sessions is two parks; a second put of one key replaces it |
list_parks_filters_by_driver | list_parks filters by driver and orders by scope and call id |
delete_park | delete_park removes one park and answers true, then false |
Every case writes under fresh driver ids and scopes and deletes what it wrote, so a harness may point every case at one shared database.
Traits§
- Driver
Store Harness - Opens a
DriverStorebackend for the conformance suite.
Functions§
- concurrent_
writers - Concurrent puts from two handles over distinct drivers and calls lose none.
- delete
deleteremoves the record, answerstruethenfalse, and leaves its parks.- delete_
park delete_parkremoves one park and answerstrue, thenfalse.- list_
orders_ by_ id listreturns every record in driver-id byte order.- list_
parks_ filters_ by_ driver list_parksfilters by driver and orders by scope and call id.- park_
round_ trip_ per_ kind - A park reads back exactly as put for every kind.
- parks_
are_ keyed_ by_ scope_ and_ call - One call id in two sessions is two parks; a second put of one key replaces it.
- put_
get_ round_ trip - A record reads back exactly as put, for every sandbox and isolation.
- put_
replaces - A second put of the same driver replaces its record.
- records_
survive_ a_ restart - Records and parks read back through a new handle (durable backends only).
- unknown_
id - An unknown driver reads as
Noneand deletes asfalse.