Documentation ¶
Overview ¶
Package newstorage contains common tests for storage provider implementations.
Index ¶
- func TestAll(t *testing.T, provider newstorage.Provider)
- func TestProviderClose(t *testing.T, provider newstorage.Provider)
- func TestProviderGetOpenStores(t *testing.T, provider newstorage.Provider)
- func TestProviderOpenStoreSetGetConfig(t *testing.T, provider newstorage.Provider)
- func TestPutGet(t *testing.T, provider newstorage.Provider)
- func TestStoreBatch(t *testing.T, provider newstorage.Provider)
- func TestStoreClose(t *testing.T, provider newstorage.Provider)
- func TestStoreDelete(t *testing.T, provider newstorage.Provider)
- func TestStoreFlush(t *testing.T, provider newstorage.Provider)
- func TestStoreGetBulk(t *testing.T, provider newstorage.Provider)
- func TestStoreGetTags(t *testing.T, provider newstorage.Provider)
- func TestStoreQuery(t *testing.T, provider newstorage.Provider)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestAll ¶
func TestAll(t *testing.T, provider newstorage.Provider)
TestAll tests common storage functionality. These tests demonstrate behaviour that is expected to be consistent across store implementations.
func TestProviderClose ¶
func TestProviderClose(t *testing.T, provider newstorage.Provider)
TestProviderClose tests common Provider Close functionality.
func TestProviderGetOpenStores ¶
func TestProviderGetOpenStores(t *testing.T, provider newstorage.Provider)
TestProviderGetOpenStores tests common Provider GetOpenStores functionality. This test assumes that the provider passed in has never had stores created under it before.
func TestProviderOpenStoreSetGetConfig ¶
func TestProviderOpenStoreSetGetConfig(t *testing.T, provider newstorage.Provider)
TestProviderOpenStoreSetGetConfig tests common Provider OpenStore, SetStoreConfig, and GetStoreConfig functionality.
func TestPutGet ¶
func TestPutGet(t *testing.T, provider newstorage.Provider)
TestPutGet tests common Store Put and Get functionality.
func TestStoreBatch ¶
func TestStoreBatch(t *testing.T, provider newstorage.Provider)
TestStoreBatch tests common Store Batch functionality.
func TestStoreClose ¶
func TestStoreClose(t *testing.T, provider newstorage.Provider)
TestStoreClose tests common Store Close functionality.
func TestStoreDelete ¶
func TestStoreDelete(t *testing.T, provider newstorage.Provider)
TestStoreDelete tests common Store Delete functionality.
func TestStoreFlush ¶
func TestStoreFlush(t *testing.T, provider newstorage.Provider)
TestStoreFlush tests common Store Flush functionality.
func TestStoreGetBulk ¶
func TestStoreGetBulk(t *testing.T, provider newstorage.Provider)
TestStoreGetBulk tests common Store GetBulk functionality.
func TestStoreGetTags ¶
func TestStoreGetTags(t *testing.T, provider newstorage.Provider)
TestStoreGetTags tests common Store GetTags functionality.
func TestStoreQuery ¶
func TestStoreQuery(t *testing.T, provider newstorage.Provider)
TestStoreQuery tests common Store Query functionality.
Types ¶
This section is empty.