• 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
/lntest/mock/chainio.go
1
package mock
2

3
import (
4
        "github.com/btcsuite/btcd/chaincfg"
5
        "github.com/btcsuite/btcd/chaincfg/chainhash"
6
        "github.com/btcsuite/btcd/wire"
7
)
8

9
// ChainIO is a mock implementation of the BlockChainIO interface.
10
type ChainIO struct {
11
        BestHeight int32
12
}
13

14
// GetBestBlock currently returns dummy values.
UNCOV
15
func (c *ChainIO) GetBestBlock() (*chainhash.Hash, int32, error) {
×
UNCOV
16
        return chaincfg.TestNet3Params.GenesisHash, c.BestHeight, nil
×
UNCOV
17
}
×
18

19
// GetUtxo currently returns dummy values.
20
func (c *ChainIO) GetUtxo(op *wire.OutPoint, _ []byte,
21
        heightHint uint32, _ <-chan struct{}) (*wire.TxOut, error) {
×
22

×
23
        return nil, nil
×
24
}
×
25

26
// GetBlockHash currently returns dummy values.
27
func (c *ChainIO) GetBlockHash(blockHeight int64) (*chainhash.Hash, error) {
×
28
        return nil, nil
×
29
}
×
30

31
// GetBlock currently returns dummy values.
32
func (c *ChainIO) GetBlock(blockHash *chainhash.Hash) (*wire.MsgBlock, error) {
×
33
        return nil, nil
×
34
}
×
35

36
// GetBlockHeader currently returns dummy values.
37
func (c *ChainIO) GetBlockHeader(blockHash *chainhash.Hash) (*wire.BlockHeader,
38
        error) {
×
39

×
40
        return nil, nil
×
41
}
×
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