func TestInterface(t *testing.T) {
	tempDir, err := ioutil.TempDir("", "interfacetest")
	if err != nil {
		t.Errorf("unable to create temp dir: %v", err)
		return
	}
	defer os.Remove(tempDir)
	dbPath := filepath.Join(tempDir, "db")
	defer os.RemoveAll(dbPath)
	walletdbtest.TestInterface(t, dbType, dbPath, true, defaultDBTimeout)
}
TestInterface performs all interfaces tests for this database driver.
package bdb_test
import (
	"io/ioutil"
	"os"
	"path/filepath"
	"testing"
	"github.com/btcsuite/btcwallet/walletdb/walletdbtest"
)