Crate tetsy_kvdb_shared_tests[][src]

Expand description

Shared tests for tetsy_kvdb 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.

test_delete_prefix

A test for KeyValueDB::delete_prefix.

test_get_fails_with_non_existing_column

A test for KeyValueDB::get. Assumes the db has only 1 column.

test_io_stats

A test for KeyValueDB::io_stats. Assumes that the db has at least 3 columns.

test_iter

A test for KeyValueDB::iter.

test_iter_with_prefix

A test for KeyValueDB::iter_with_prefix.

test_put_and_get

A test for KeyValueDB::get.

test_write_clears_buffered_ops

A test for KeyValueDB::write.