tests

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tests implements a test suite for store drivers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, s Setup, d Destroy)

Run store test suite

func StoreDelete

func StoreDelete(t *testing.T, setup Setup, destroy Destroy) func(t *testing.T)

StoreDelete type

func StoreHas

func StoreHas(t *testing.T, setup Setup, destroy Destroy) func(t *testing.T)

StoreHas test

func StoreIter

func StoreIter(t *testing.T, setup Setup, destroy Destroy) func(t *testing.T)

StoreIter type

func StoreSetGet

func StoreSetGet(t *testing.T, setup Setup, destroy Destroy) func(t *testing.T)

StoreSetGet test

Types

type Destroy

type Destroy func(t *testing.T, s store.Store)

Destroy function type for cleaning up after tests

type Setup

type Setup func(t *testing.T) (s store.Store)

Setup function type for creating a store for tests

Jump to

Keyboard shortcuts

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