397499c288
Needed for CI to run root coverage Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
19 lines
498 B
Go
19 lines
498 B
Go
package boltdb
|
|
|
|
import (
|
|
"context"
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
"github.com/docker/containerd/snapshot/storage"
|
|
"github.com/docker/containerd/snapshot/storage/testsuite"
|
|
|
|
// Does not require root but flag must be defined for snapshot tests
|
|
_ "github.com/docker/containerd/testutil"
|
|
)
|
|
|
|
func BenchmarkSuite(b *testing.B) {
|
|
testsuite.Benchmarks(b, "BoltDB", func(ctx context.Context, root string) (storage.MetaStore, error) {
|
|
return NewMetaStore(ctx, filepath.Join(root, "metadata.db"))
|
|
})
|
|
}
|