mirror of
https://github.com/lightninglabs/loop
synced 2024-11-09 19:10:47 +00:00
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.
This commit is contained in:
parent
a6e9a2b652
commit
a55c461a8f
@ -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…
Reference in New Issue
Block a user