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

lightningnetwork / lnd / 13725358077

07 Mar 2025 04:51PM UTC coverage: 58.224% (-10.4%) from 68.615%
13725358077

Pull #9458

github

web-flow
Merge bf4c6625f into ab2dc09eb
Pull Request #9458: multi+server.go: add initial permissions for some peers

346 of 549 new or added lines in 10 files covered. (63.02%)

27466 existing lines in 443 files now uncovered.

94609 of 162492 relevant lines covered (58.22%)

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