dbtest

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 8 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)

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

Types

type TestableDB

type TestableDB interface {
	drkey.SecretValueDB
	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