2
0
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:
Andras Banki-Horvath 2024-09-02 18:49:22 +02:00
parent a6e9a2b652
commit a55c461a8f
No known key found for this signature in database
GPG Key ID: 80E5375C094198D8
5 changed files with 10 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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