Expand description
Shared tests for keyvaluedb functionality, to be executed against actual implementations.
Constants§
- DELETE_
PREFIX_ NUM_ COLUMNS - The number of columns required to run
test_delete_prefix
. - IO_
STATS_ NUM_ COLUMNS - The number of columns required to run
test_io_stats
.
Functions§
- test_
complex - A complex test.
- test_
delete_ and_ get - A test for
KeyValueDB::get
and delete with transaction. - test_
delete_ and_ get_ single - A test for
KeyValueDB::get
and delete without transaction. - test_
delete_ prefix - A test for
KeyValueDB::delete_prefix
. - test_
get_ fails_ with_ non_ existing_ column - A test for
KeyValueDB::get
. Assumes thedb
has only 1 column. - test_
io_ stats - A test for
KeyValueDB::io_stats
. Assumes that thedb
has at least 3 columns. - test_
iter - A test for
KeyValueDB::iter
. - test_
iter_ keys - A test for
KeyValueDB::iter_keys
. - test_
iter_ with_ prefix - A test for
KeyValueDB::iter
with a prefix. - test_
num_ keys - A test for
KeyValueDB::num_keys
. - test_
put_ and_ get - A test for
KeyValueDB::get
. - test_
write_ clears_ buffered_ ops - A test for
KeyValueDB::write
.