mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-26 07:30:00 -07:00
21 lines
397 B
Go
21 lines
397 B
Go
package memory
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/sot-tech/mochi/storage"
|
|
"github.com/sot-tech/mochi/storage/test"
|
|
)
|
|
|
|
func createNew() storage.PeerStorage {
|
|
ps, err := NewPeerStorage(Config{ShardCount: 1024})
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return ps
|
|
}
|
|
|
|
func TestStorage(t *testing.T) { test.RunTests(t, createNew()) }
|
|
|
|
func BenchmarkStorage(b *testing.B) { test.RunBenchmarks(b, createNew) }
|