• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightningnetwork / lnd / 15561477203

10 Jun 2025 01:54PM UTC coverage: 58.351% (-10.1%) from 68.487%
15561477203

Pull #9356

github

web-flow
Merge 6440b25db into c6d6d4c0b
Pull Request #9356: lnrpc: add incoming/outgoing channel ids filter to forwarding history request

33 of 36 new or added lines in 2 files covered. (91.67%)

28366 existing lines in 455 files now uncovered.

97715 of 167461 relevant lines covered (58.35%)

1.81 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lnencrypt/test_utils.go
1
package lnencrypt
2

3
import (
4
        "fmt"
5

6
        "github.com/btcsuite/btcd/btcec/v2"
7
        "github.com/lightningnetwork/lnd/keychain"
8
)
9

10
var (
11
        testWalletPrivKey = []byte{
12
                0x2b, 0xd8, 0x06, 0xc9, 0x7f, 0x0e, 0x00, 0xaf,
13
                0x1a, 0x1f, 0xc3, 0x32, 0x8f, 0xa7, 0x63, 0xa9,
14
                0x26, 0x97, 0x23, 0xc8, 0xdb, 0x8f, 0xac, 0x4f,
15
                0x93, 0xaf, 0x71, 0xdb, 0x18, 0x6d, 0x6e, 0x90,
16
        }
17
)
18

19
type MockKeyRing struct {
20
        Fail bool
21
}
22

23
func (m *MockKeyRing) DeriveNextKey(
24
        keyFam keychain.KeyFamily) (keychain.KeyDescriptor, error) {
×
25

×
26
        return keychain.KeyDescriptor{}, nil
×
27
}
×
28

29
func (m *MockKeyRing) DeriveKey(
UNCOV
30
        keyLoc keychain.KeyLocator) (keychain.KeyDescriptor, error) {
×
UNCOV
31

×
UNCOV
32
        if m.Fail {
×
UNCOV
33
                return keychain.KeyDescriptor{}, fmt.Errorf("fail")
×
UNCOV
34
        }
×
35

UNCOV
36
        _, pub := btcec.PrivKeyFromBytes(testWalletPrivKey)
×
UNCOV
37
        return keychain.KeyDescriptor{
×
UNCOV
38
                PubKey: pub,
×
UNCOV
39
        }, nil
×
40
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc