storagetest

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package storagetest contains high level API tests and test utils for other modules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TmpDB

func TmpDB(ctx context.Context, t testing.TB, dir string) (*storage.DB, func())

TmpDB returns BadgerDB's storage implementation and cleanup function.

Creates BadgerDB in temporary directory and uses t for errors reporting.

Types

This section is empty.

Jump to

Keyboard shortcuts

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