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 ¶
- func Check(err error) bool
- func Debug(a ...interface{})
- func Debugc(fn func() string)
- func Debugf(format string, a ...interface{})
- func Debugs(a interface{})
- func Error(a ...interface{})
- func Errorc(fn func() string)
- func Errorf(format string, a ...interface{})
- func Errors(a interface{})
- func Fatal(a ...interface{})
- func Fatalc(fn func() string)
- func Fatalf(format string, a ...interface{})
- func Fatals(a interface{})
- func Info(a ...interface{})
- func Infoc(fn func() string)
- func Infof(format string, a ...interface{})
- func Infos(a interface{})
- func TestInterface(t Tester, dbType, dbPath string)
- func Trace(a ...interface{})
- func Tracec(fn func() string)
- func Tracef(format string, a ...interface{})
- func Traces(a interface{})
- func Warn(a ...interface{})
- func Warnc(fn func() string)
- func Warnf(format string, a ...interface{})
- func Warns(a interface{})
- type Tester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestInterface ¶
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.
Click to show internal directories.
Click to hide internal directories.