github.com/ethersphere/bee/v2@v2.2.0/pkg/storage/inmemstore/inmemstore_test.go (about) 1 // Copyright 2022 The Swarm Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package inmemstore_test 6 7 import ( 8 "testing" 9 10 inmem "github.com/ethersphere/bee/v2/pkg/storage/inmemstore" 11 "github.com/ethersphere/bee/v2/pkg/storage/storagetest" 12 ) 13 14 func TestStore(t *testing.T) { 15 t.Parallel() 16 17 storagetest.TestStore(t, inmem.New()) 18 } 19 20 func BenchmarkStore(b *testing.B) { 21 storagetest.BenchmarkStore(b, inmem.New()) 22 } 23 24 func TestBatchedStore(t *testing.T) { 25 t.Parallel() 26 27 storagetest.TestBatchedStore(t, inmem.New()) 28 } 29 30 func BenchmarkBatchedStore(b *testing.B) { 31 storagetest.BenchmarkBatchedStore(b, inmem.New()) 32 }