testutil

package
v0.0.0-...-fa26ab0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: Apache-2.0, BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadgerDB

func BadgerDB(t *testing.T) (kvstore.KVStore, error)

BadgerDB creates a temporary BadgerKVStore that automatically gets cleaned up when the test finishes.

func TempDir

func TempDir(t *testing.T) (string, error)

TempDir creates a temporary directory, that automatically gets cleaned up when the test finishes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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