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

lightningnetwork / lnd / 13035292482

29 Jan 2025 03:59PM UTC coverage: 49.3% (-9.5%) from 58.777%
13035292482

Pull #9456

github

mohamedawnallah
docs: update release-notes-0.19.0.md

In this commit, we warn users about the removal
of RPCs `SendToRoute`, `SendToRouteSync`, `SendPayment`,
and `SendPaymentSync` in the next release 0.20.
Pull Request #9456: lnrpc+docs: deprecate warning `SendToRoute`, `SendToRouteSync`, `SendPayment`, and `SendPaymentSync` in Release 0.19

100634 of 204126 relevant lines covered (49.3%)

1.54 hits per line

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

0.0
/lnwallet/chainfee/mocks.go
1
package chainfee
2

3
import (
4
        "github.com/stretchr/testify/mock"
5
)
6

7
type mockFeeSource struct {
8
        mock.Mock
9
}
10

11
// A compile-time assertion to ensure that mockFeeSource implements the
12
// WebAPIFeeSource interface.
13
var _ WebAPIFeeSource = (*mockFeeSource)(nil)
14

15
func (m *mockFeeSource) GetFeeInfo() (WebAPIResponse, error) {
×
16
        args := m.Called()
×
17

×
18
        return args.Get(0).(WebAPIResponse), args.Error(1)
×
19
}
×
20

21
// MockEstimator implements the `Estimator` interface and is used by
22
// other packages for mock testing.
23
type MockEstimator struct {
24
        mock.Mock
25
}
26

27
// Compile time assertion that MockEstimator implements Estimator.
28
var _ Estimator = (*MockEstimator)(nil)
29

30
// EstimateFeePerKW takes in a target for the number of blocks until an initial
31
// confirmation and returns the estimated fee expressed in sat/kw.
32
func (m *MockEstimator) EstimateFeePerKW(
33
        numBlocks uint32) (SatPerKWeight, error) {
×
34

×
35
        args := m.Called(numBlocks)
×
36

×
37
        if args.Get(0) == nil {
×
38
                return 0, args.Error(1)
×
39
        }
×
40

41
        return args.Get(0).(SatPerKWeight), args.Error(1)
×
42
}
43

44
// Start signals the Estimator to start any processes or goroutines it needs to
45
// perform its duty.
46
func (m *MockEstimator) Start() error {
×
47
        args := m.Called()
×
48

×
49
        return args.Error(0)
×
50
}
×
51

52
// Stop stops any spawned goroutines and cleans up the resources used by the
53
// fee estimator.
54
func (m *MockEstimator) Stop() error {
×
55
        args := m.Called()
×
56

×
57
        return args.Error(0)
×
58
}
×
59

60
// RelayFeePerKW returns the minimum fee rate required for transactions to be
61
// relayed. This is also the basis for calculation of the dust limit.
62
func (m *MockEstimator) RelayFeePerKW() SatPerKWeight {
×
63
        args := m.Called()
×
64

×
65
        return args.Get(0).(SatPerKWeight)
×
66
}
×
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