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

lightningnetwork / lnd / 13974489001

20 Mar 2025 04:32PM UTC coverage: 56.292% (-2.9%) from 59.168%
13974489001

Pull #8754

github

web-flow
Merge aed149e6b into ea050d06f
Pull Request #8754: Add `Outbound` Remote Signer implementation

594 of 1713 new or added lines in 26 files covered. (34.68%)

23052 existing lines in 272 files now uncovered.

105921 of 188165 relevant lines covered (56.29%)

23796.34 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 {
294✔
16
        return DirectedNodePair{
294✔
17
                From: from,
294✔
18
                To:   to,
294✔
19
        }
294✔
20
}
294✔
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