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

lightningnetwork / lnd / 17027244024

17 Aug 2025 11:32PM UTC coverage: 57.287% (-9.5%) from 66.765%
17027244024

Pull #10167

github

web-flow
Merge fcb4f4303 into fb1adfc21
Pull Request #10167: multi: bump Go to 1.24.6

3 of 18 new or added lines in 6 files covered. (16.67%)

28537 existing lines in 457 files now uncovered.

99094 of 172978 relevant lines covered (57.29%)

1.78 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