Skip to main content

Module driver_store

Module driver_store 

Source
Expand description

Conformance cases for DriverStore backends (spec 3.2 §7.7, §11, §13 Q8).

CaseContract
put_get_round_tripA record reads back exactly as put: every field, every EffectClass, DriverSandbox and DriverIsolation variant
put_replacesA second put of the same driver replaces its record
list_orders_by_idlist returns every record in driver-id byte order
unknown_idget of an unknown driver is None; delete answers false
deletedelete removes the record and answers true, then false, and leaves its parks
records_survive_a_restartRecords and parks read back through a new handle (durable backends only)
concurrent_writersConcurrent puts from two handles over distinct drivers and calls lose none
park_round_trip_per_kindA park reads back exactly as put for every kind: mrtr, task { taskId }, legacy
parks_are_keyed_by_scope_and_callOne call id in two sessions is two parks; a second put of one key replaces it
list_parks_filters_by_driverlist_parks filters by driver and orders by scope and call id
delete_parkdelete_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§

DriverStoreHarness
Opens a DriverStore backend for the conformance suite.

Functions§

concurrent_writers
Concurrent puts from two handles over distinct drivers and calls lose none.
delete
delete removes the record, answers true then false, and leaves its parks.
delete_park
delete_park removes one park and answers true, then false.
list_orders_by_id
list returns every record in driver-id byte order.
list_parks_filters_by_driver
list_parks filters 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 None and deletes as false.