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_
cleanup - test_
complex - A complex test.
- test_
delete_ and_ get - A test for
KeyValueDB::getand delete with transaction. - test_
delete_ and_ get_ single - A test for
KeyValueDB::getand 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 thedbhas only 1 column. - test_
io_ stats - A test for
KeyValueDB::io_stats. Assumes that thedbhas 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::iterwith 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.