testutil

package
Version: v0.0.0-...-1974178 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0, BSD-2-Clause Imports: 10 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 PebbleDB

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

PebbleDB creates a temporary PebbleKVStore 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL