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

lightningnetwork / lnd / 13572832752

25 Feb 2025 05:33AM UTC coverage: 49.404% (-9.4%) from 58.77%
13572832752

Pull #9562

github

NishantBansal2003
"multi: Add itest for funding timeout"

This commit adds an integration test that
verifies the funding timeout behavior in the
funding manager, in dev/integration test.

Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
Pull Request #9562: Make MaxWaitNumBlocksFundingConf Configurable for itest

29 of 31 new or added lines in 4 files covered. (93.55%)

27211 existing lines in 434 files now uncovered.

101066 of 204570 relevant lines covered (49.4%)

1.54 hits per line

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

0.0
/chainio/mocks.go
1
package chainio
2

3
import (
4
        "github.com/btcsuite/btclog/v2"
5
        "github.com/stretchr/testify/mock"
6
)
7

8
// MockConsumer is a mock implementation of the Consumer interface.
9
type MockConsumer struct {
10
        mock.Mock
11
}
12

13
// Compile-time constraint to ensure MockConsumer implements Consumer.
14
var _ Consumer = (*MockConsumer)(nil)
15

16
// Name returns a human-readable string for this subsystem.
UNCOV
17
func (m *MockConsumer) Name() string {
×
UNCOV
18
        args := m.Called()
×
UNCOV
19
        return args.String(0)
×
UNCOV
20
}
×
21

22
// ProcessBlock takes a blockbeat and processes it. A receive-only error chan
23
// must be returned.
UNCOV
24
func (m *MockConsumer) ProcessBlock(b Blockbeat) error {
×
UNCOV
25
        args := m.Called(b)
×
UNCOV
26

×
UNCOV
27
        return args.Error(0)
×
UNCOV
28
}
×
29

30
// MockBlockbeat is a mock implementation of the Blockbeat interface.
31
type MockBlockbeat struct {
32
        mock.Mock
33
}
34

35
// Compile-time constraint to ensure MockBlockbeat implements Blockbeat.
36
var _ Blockbeat = (*MockBlockbeat)(nil)
37

38
// Height returns the current block height.
UNCOV
39
func (m *MockBlockbeat) Height() int32 {
×
UNCOV
40
        args := m.Called()
×
UNCOV
41

×
UNCOV
42
        return args.Get(0).(int32)
×
UNCOV
43
}
×
44

45
// logger returns the logger for the blockbeat.
UNCOV
46
func (m *MockBlockbeat) logger() btclog.Logger {
×
UNCOV
47
        args := m.Called()
×
UNCOV
48

×
UNCOV
49
        return args.Get(0).(btclog.Logger)
×
UNCOV
50
}
×
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