test

package
v0.0.0-...-7d48e80 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualTags

func EqualTags(tags1, tags2 []storage.Tag) bool

EqualTags returns whether the given lists of tags contain the same tags, ignoring order.

func ProviderClose

func ProviderClose(t *testing.T, provider storage.Provider)

ProviderClose tests common Provider Close functionality.

func ProviderGetOpenStores

func ProviderGetOpenStores(t *testing.T, provider storage.Provider)

ProviderGetOpenStores tests common Provider GetOpenStores functionality. This test assumes that the provider passed in has never had stores created under it before.

func ProviderOpenStoreSetGetConfig

func ProviderOpenStoreSetGetConfig(t *testing.T, provider storage.Provider)

ProviderOpenStoreSetGetConfig tests common Provider OpenStore, SetStoreConfig, and GetStoreConfig functionality.

func PutData

func PutData(t *testing.T, store storage.Store, keys []string, values [][]byte, tags [][]storage.Tag)

PutData puts the given data in the given store.

func PutGet

func PutGet(t *testing.T, provider storage.Provider)

PutGet tests common Store Put and Get functionality.

func RandomStoreName

func RandomStoreName() string

RandomStoreName creates a random store name.

func StoreBatch

func StoreBatch(t *testing.T, provider storage.Provider)

StoreBatch tests common Store Batch functionality.

func StoreClose

func StoreClose(t *testing.T, provider storage.Provider)

StoreClose tests common Store Close functionality.

func StoreDelete

func StoreDelete(t *testing.T, provider storage.Provider)

StoreDelete tests common Store Delete functionality.

func StoreFlush

func StoreFlush(t *testing.T, provider storage.Provider)

StoreFlush tests common Store Flush functionality.

func StoreGetBulk

func StoreGetBulk(t *testing.T, provider storage.Provider)

StoreGetBulk tests common Store GetBulk functionality.

func StoreGetTags

func StoreGetTags(t *testing.T, provider storage.Provider)

StoreGetTags tests common Store GetTags functionality.

func StoreQuery

func StoreQuery(t *testing.T, provider storage.Provider)

StoreQuery tests common Store Query functionality.

func StoreQueryWithSortingAndInitialPageOptions

func StoreQueryWithSortingAndInitialPageOptions(t *testing.T, provider storage.Provider)

StoreQueryWithSortingAndInitialPageOptions tests common Store Query functionality when the sorting and initial page options are used.

func TestAll

func TestAll(t *testing.T, provider storage.Provider)

TestAll tests common storage functionality. These tests demonstrate behaviour that is expected to be consistent across store implementations. Some tests can be skipped by passing in the appropriate TestOptions here.

Types

This section is empty.

Jump to

Keyboard shortcuts

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