Module map

Source
Expand description

Testing utilities for map types.

Enumsยง

Log ๐Ÿ”’
Successful operations are logged as Some. Failed operations are None.
Ops ๐Ÿ”’

Constantsยง

OPS ๐Ÿ”’

Functionsยง

assert_logs_consistent ๐Ÿ”’
insert_concurrent
Runs random insert operations concurrently.
log_concurrent
Randomly runs many operations concurrently and logs the operations & results per thread. Then checks the consistency of the log. For example, if the key k was successfully deleted twice, then k must have been inserted at least twice.
lookup_concurrent
Runs random lookup operations concurrently.
stress_concurrent
Randomly runs many operations concurrently.
stress_sequential
Runs many operations in a single thread and tests if it works like a map data structure using std::collections::HashMap as reference.