2019-01-24 20:15:10 +00:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
2018-09-05 17:10:35 +01:00
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package storelogger
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2018-10-16 12:43:44 +01:00
|
|
|
"go.uber.org/zap"
|
|
|
|
|
2018-09-05 17:10:35 +01:00
|
|
|
"storj.io/storj/storage/teststore"
|
|
|
|
"storj.io/storj/storage/testsuite"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestSuite(t *testing.T) {
|
|
|
|
store := teststore.New()
|
2020-01-22 19:00:46 +00:00
|
|
|
store.SetLookupLimit(500)
|
2018-09-05 17:10:35 +01:00
|
|
|
logged := New(zap.NewNop(), store)
|
|
|
|
testsuite.RunTests(t, logged)
|
|
|
|
}
|
|
|
|
|
|
|
|
func BenchmarkSuite(b *testing.B) {
|
|
|
|
store := teststore.New()
|
|
|
|
logged := New(zap.NewNop(), store)
|
|
|
|
testsuite.RunBenchmarks(b, logged)
|
|
|
|
}
|