Add type 'Index' to backend

This commit is contained in:
Alexander Neumann 2015-04-26 15:48:35 +02:00
parent 8f3b91ba32
commit 87ce38b13a
5 changed files with 15 additions and 1 deletions

View file

@ -13,7 +13,10 @@ import (
)
func testBackend(b backend.Backend, t *testing.T) {
for _, tpe := range []backend.Type{backend.Data, backend.Key, backend.Lock, backend.Snapshot, backend.Tree} {
for _, tpe := range []backend.Type{
backend.Data, backend.Key, backend.Lock,
backend.Snapshot, backend.Tree, backend.Index,
} {
// detect non-existing files
for _, test := range TestStrings {
id, err := backend.ParseID(test.id)