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

lightningnetwork / lnd / 18852986778

27 Oct 2025 07:10PM UTC coverage: 54.859% (-11.8%) from 66.648%
18852986778

Pull #10265

github

web-flow
Merge 45787b3d5 into 9a7b526c0
Pull Request #10265: multi: update close logic to handle re-orgs of depth n-1, where n is num confs - add min conf floor

529 of 828 new or added lines in 17 files covered. (63.89%)

24026 existing lines in 286 files now uncovered.

110927 of 202205 relevant lines covered (54.86%)

21658.16 hits per line

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

75.0
/routing/nodepair.go
1
package routing
2

3
import (
4
        "fmt"
5

6
        "github.com/lightningnetwork/lnd/routing/route"
7
)
8

9
// DirectedNodePair stores a directed pair of nodes.
10
type DirectedNodePair struct {
11
        From, To route.Vertex
12
}
13

14
// NewDirectedNodePair instantiates a new DirectedNodePair struct.
15
func NewDirectedNodePair(from, to route.Vertex) DirectedNodePair {
296✔
16
        return DirectedNodePair{
296✔
17
                From: from,
296✔
18
                To:   to,
296✔
19
        }
296✔
20
}
296✔
21

22
// String converts a node pair to its human readable representation.
UNCOV
23
func (d DirectedNodePair) String() string {
×
UNCOV
24
        return fmt.Sprintf("%v -> %v", d.From, d.To)
×
UNCOV
25
}
×
26

27
// Reverse returns a reversed copy of the pair.
28
func (d DirectedNodePair) Reverse() DirectedNodePair {
53✔
29
        return DirectedNodePair{From: d.To, To: d.From}
53✔
30
}
53✔
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