github.com/influx6/npkg@v0.8.8/nstorage/nmap/mapexpr_test.go (about) 1 package nmap 2 3 import ( 4 "testing" 5 6 "github.com/influx6/npkg/nstorage/internal/tharness" 7 "github.com/stretchr/testify/require" 8 ) 9 10 func TestStoreWithNMapStoreRemoveKeys(t *testing.T) { 11 var store = NewExprByteStore(100) 12 require.NotNil(t, store) 13 14 tharness.TestByteStoreRemoveKeys(t, store) 15 } 16 17 func TestStoreWithNMapStoreGetAnyKeys(t *testing.T) { 18 var store = NewExprByteStore(100) 19 require.NotNil(t, store) 20 21 tharness.TestByteStoreGetAnykeys(t, store) 22 } 23 24 func TestStoreWithNMapStoreGetAllkeys(t *testing.T) { 25 var store = NewExprByteStore(100) 26 require.NotNil(t, store) 27 28 tharness.TestByteStoreGetAllkeys(t, store) 29 } 30 31 func TestStoreWithNMapStoreScanMatch(t *testing.T) { 32 var store = NewExprByteStore(100) 33 require.NotNil(t, store) 34 35 tharness.TestByteStoreScanMatch(t, store) 36 } 37 38 func TestStoreWithNMapStoreFindEachPrefixKey(t *testing.T) { 39 var store = NewExprByteStore(100) 40 require.NotNil(t, store) 41 42 tharness.TestByteStoreFindPrefix(t, store) 43 } 44 45 func TestStoreWithNMapStoreFindEach(t *testing.T) { 46 var store = NewExprByteStore(100) 47 require.NotNil(t, store) 48 49 tharness.TestByteStoreFindEach(t, store) 50 } 51 52 func TestStoreWithNMapStoreFindAll(t *testing.T) { 53 var store = NewExprByteStore(100) 54 require.NotNil(t, store) 55 56 tharness.TestByteStoreFindAll(t, store) 57 } 58 59 func TestStoreWithNMapStore(t *testing.T) { 60 var store = NewExprByteStore(100) 61 require.NotNil(t, store) 62 63 tharness.TestByteStore(t, store) 64 } 65 66 func TestNMapExpiryStore(t *testing.T) { 67 var store = NewExprByteStore(100) 68 require.NotNil(t, store) 69 70 tharness.TestExpirableStore(t, store) 71 }