c1f1aacffe
There's no reason it should be at the top-level. Change-Id: I35b06e7baa0e425c6ff9a82964d0a1570d4eb6d0
26 lines
535 B
Go
26 lines
535 B
Go
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package testsuite
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"storj.io/common/testcontext"
|
|
"storj.io/storj/private/kvstore"
|
|
)
|
|
|
|
func newItem(key, value string, isPrefix bool) kvstore.Item {
|
|
return kvstore.Item{
|
|
Key: kvstore.Key(key),
|
|
Value: kvstore.Value(value),
|
|
IsPrefix: isPrefix,
|
|
}
|
|
}
|
|
|
|
func cleanupItems(t testing.TB, ctx *testcontext.Context, store kvstore.Store, items kvstore.Items) {
|
|
for _, item := range items {
|
|
_ = store.Delete(ctx, item.Key)
|
|
}
|
|
}
|