0
0
Fork 0
bleve/index/store/test
Marty Schoch 2332455bd2 nicer formatting of license header 2016-10-02 10:13:14 -04:00
..
README.md more refactoring 2015-09-28 16:50:27 -04:00
bytes.go nicer formatting of license header 2016-10-02 10:13:14 -04:00
crud.go nicer formatting of license header 2016-10-02 10:13:14 -04:00
isolation.go nicer formatting of license header 2016-10-02 10:13:14 -04:00
iterator.go nicer formatting of license header 2016-10-02 10:13:14 -04:00
merge.go nicer formatting of license header 2016-10-02 10:13:14 -04:00

README.md

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.