mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02: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
5 changed files with 10 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue