85aee9b064
This commit separates all etcd related sources (sans a few stubs and config) from the rest of the source tree and makes compilation conditional depending on whether the kvdb_etcd build tag is specified.
18 lines
365 B
Go
18 lines
365 B
Go
// +build kvdb_etcd
|
|
|
|
package etcd
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/btcsuite/btcwallet/walletdb/walletdbtest"
|
|
)
|
|
|
|
// TestWalletDBInterface performs the WalletDB interface test suite for the
|
|
// etcd database driver.
|
|
func TestWalletDBInterface(t *testing.T) {
|
|
f := NewEtcdTestFixture(t)
|
|
defer f.Cleanup()
|
|
walletdbtest.TestInterface(t, dbType, f.BackendConfig())
|
|
}
|