test: support incomplete mocks

Updating the mocks to be complete implementation of the underlying
interfaces is not always possible due to cross dependency issues.
This commit embeds the interfaces into the mocks so we can at least
always compile them.
pull/821/head
Andras Banki-Horvath 2 weeks ago
parent a6e9a2b652
commit a55c461a8f
No known key found for this signature in database
GPG Key ID: 80E5375C094198D8

@ -13,6 +13,8 @@ import (
)
type mockChainNotifier struct {
lndclient.ChainNotifierClient
sync.Mutex
lnd *LndMockServices
confRegistrations []*ConfRegistration

@ -15,6 +15,8 @@ import (
)
type mockInvoices struct {
lndclient.InvoicesClient
lnd *LndMockServices
wg sync.WaitGroup
}

@ -15,6 +15,8 @@ import (
)
type mockSigner struct {
lndclient.SignerClient
lnd *LndMockServices
}

@ -25,6 +25,8 @@ var (
)
type mockVersioner struct {
lndclient.VersionerClient
version *verrpc.Version
}

@ -27,6 +27,8 @@ import (
var DefaultMockFee = chainfee.SatPerKWeight(10000)
type mockWalletKit struct {
lndclient.WalletKitClient
lnd *LndMockServices
keyIndex int32

Loading…
Cancel
Save