dbtest

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestDB

func TestDB(t *testing.T, db TestableDB)

Test should be used to test any implementation of the Level2DB interface. An implementation of the Level2DB interface should at least have one test method that calls this test-suite.

Types

type TestableDB

type TestableDB interface {
	drkey.Level2DB
	Prepare(t *testing.T, ctx context.Context)
}

Jump to

Keyboard shortcuts

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