0
0
bleve/index/store/test
Marty Schoch f0d282f5f8 add test case for seeing prefix iterators outside of range
similar to #256 except for prefix iterators
includes fix for boltdb and gtreap which had incorrect behavior
2015-10-26 16:14:29 -04:00
..
bytes.go more refactoring 2015-09-28 16:50:27 -04:00
crud.go major kvstore interface and impl overhaul 2015-09-23 11:25:47 -07:00
isolation.go more refactoring 2015-09-28 16:50:27 -04:00
iterator.go add test case for seeing prefix iterators outside of range 2015-10-26 16:14:29 -04:00
merge.go major kvstore interface and impl overhaul 2015-09-23 11:25:47 -07:00
README.md more refactoring 2015-09-28 16:50:27 -04:00

Generic KVStore implementation tests

These are a set of common tests that should pass on any correct KVStore implementation.

Each test function in this package has the form:

func CommonTest<name>(t *testing.T, s store.KVStore) {...}

A KVStore implementation test should use the same name, including its own KVStore name in the test function. It should instantiate an instance of the store, and pass the testing.T and store to the common function.

The common test functions should NOT close the KVStore. The KVStore test implementation should close the store and cleanup any state.