newstorage

package module
v0.0.0-...-f852f97 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package newstorage contains common tests for storage provider implementations.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL