Skip to main content

Module control_store

Module control_store 

Source
Expand description

Conformance cases for ControlStore backends (spec 3.3 §10 K3, K4).

CaseContract
settings_round_tripAn area’s settings read back exactly as put: every change, off and on, what the area started with and its earlier quiet times
put_settings_replacesA second put of one area replaces it
list_settings_orders_by_partitionlist_area_settings orders by partition id
unknown_keysAn unknown area and an unknown viewer are None
cursor_never_moves_backAn advance behind the stored cursor keeps the stored one; at or past it, stores the new one
cursors_are_per_user_and_viewerEach user’s viewer has its own cursor
records_survive_a_restartSettings and cursors read back through a new handle (durable backends only)
concurrent_advances_keep_the_highestSixteen concurrent advances of one cursor from two handles leave the highest
update_changes_one_settingupdate_area_settings creates an area’s record, then changes one setting and keeps the others
concurrent_updates_all_holdSixteen concurrent updates of one area from two handles all hold

Every case writes under fresh partitions, users and viewers, so a harness may point every case at one shared database.

Traits§

ControlStoreHarness
Opens a ControlStore backend for the conformance suite.

Functions§

concurrent_advances_keep_the_highest
Sixteen concurrent advances of one cursor from two handles leave the highest.
concurrent_updates_all_hold
Sixteen concurrent updates of one area from two handles all hold: none is lost to another written over it.
cursor_never_moves_back
An advance behind the stored cursor keeps the stored one.
cursors_are_per_user_and_viewer
Each user’s viewer has its own cursor.
list_settings_orders_by_partition
list_area_settings orders by partition id.
put_settings_replaces
A second put of one area replaces it.
records_survive_a_restart
Settings and cursors read back through a new handle.
settings_round_trip
An area’s settings read back exactly as put.
unknown_keys
An unknown area and an unknown viewer are None.
update_changes_one_setting
update_area_settings creates an area’s record, then changes one setting and keeps the others.