bchwallet: github.com/gcash/bchwallet/walletdb/walletdbtest Index | Files

package walletdbtest

import "github.com/gcash/bchwallet/walletdb/walletdbtest"

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

Package Files

doc.go interface.go tester.go

func TestInterface Uses

func TestInterface(t Tester, dbType, dbPath string)

TestInterface performs all interfaces tests for this database driver.

type Tester Uses

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.

Package walletdbtest imports 4 packages (graph). Updated 2018-10-08. Refresh now. Tools for package owners.