walletdbtest

package
v0.0.0-...-9f6bcfa Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: ISC, ISC Imports: 5 Imported by: 0

Documentation

Overview

Package walletdbtest provides exported tests that can be imported and consumed by walletdb driver tests to help ensure that drivers confirm to the database driver interface correctly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestInterface

func TestInterface(t Tester, dbType string, args ...interface{})

TestInterface performs all interfaces tests for this database driver.

Types

type Tester

type Tester interface {
	Error(...interface{})
	Errorf(string, ...interface{})
	Fail()
	FailNow()
	Failed() bool
	Fatal(...interface{})
	Fatalf(string, ...interface{})
	Log(...interface{})
	Logf(string, ...interface{})
	Parallel()
	Skip(...interface{})
	SkipNow()
	Skipf(string, ...interface{})
	Skipped() bool
}

Tester is an interface type that can be implemented by *testing.T. This allows drivers to call into the non-test API using their own test contexts.

Jump to

Keyboard shortcuts

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