mirror of
https://github.com/octoleo/restic.git
synced 2025-02-02 11:58:26 +00:00
mem: Add benchmarks
This commit is contained in:
parent
e009c002ba
commit
13946e7db7
@ -14,8 +14,8 @@ type memConfig struct {
|
||||
be restic.Backend
|
||||
}
|
||||
|
||||
func TestSuiteBackendMem(t *testing.T) {
|
||||
suite := test.Suite{
|
||||
func newTestSuite() *test.Suite {
|
||||
return &test.Suite{
|
||||
// NewConfig returns a config for a new temporary backend that will be used in tests.
|
||||
NewConfig: func() (interface{}, error) {
|
||||
return &memConfig{}, nil
|
||||
@ -54,6 +54,12 @@ func TestSuiteBackendMem(t *testing.T) {
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
||||
suite.RunTests(t)
|
||||
}
|
||||
|
||||
func TestSuiteBackendMem(t *testing.T) {
|
||||
newTestSuite().RunTests(t)
|
||||
}
|
||||
|
||||
func BenchmarkSuiteBackendMem(t *testing.B) {
|
||||
newTestSuite().RunBenchmarks(t)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user