bolttesting

package module
v0.0.0-...-8b7e381 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestDB

func CreateTestDB(t testing.TB) (db *bolt.DB, teardown func())

CreateTestDB will create a database for the current test

func TempDir

func TempDir(t testing.TB) (tmpdir string, teardown func())

TempDir return a tempdirectory path and a teardown to clean up that tmpdirectory after the test

func TestEqBytes

func TestEqBytes(a, b []byte) bool

TestEqBytes test that byte slices are matching

func TestEqInts

func TestEqInts(a, b []int) bool

TestEqInts test that integer slices are equal by values

func TruncateDB

func TruncateDB(t testing.TB, db *bolt.DB)

TruncateDB will delete all main bucket from the database

Types

This section is empty.

Jump to

Keyboard shortcuts

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