Expand description
Conformance cases for ControlStore backends (spec 3.3 §10 K3, K4).
| Case | Contract |
|---|---|
settings_round_trip | An 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_replaces | A second put of one area replaces it |
list_settings_orders_by_partition | list_area_settings orders by partition id |
unknown_keys | An unknown area and an unknown viewer are None |
cursor_never_moves_back | An advance behind the stored cursor keeps the stored one; at or past it, stores the new one |
cursors_are_per_user_and_viewer | Each user’s viewer has its own cursor |
records_survive_a_restart | Settings and cursors read back through a new handle (durable backends only) |
concurrent_advances_keep_the_highest | Sixteen concurrent advances of one cursor from two handles leave the highest |
update_changes_one_setting | update_area_settings creates an area’s record, then changes one setting and keeps the others |
concurrent_updates_all_hold | Sixteen 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§
- Control
Store Harness - Opens a
ControlStorebackend 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_settingsorders 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_settingscreates an area’s record, then changes one setting and keeps the others.