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

lightningnetwork / lnd / 17132206455

21 Aug 2025 03:56PM UTC coverage: 54.685% (-2.6%) from 57.321%
17132206455

Pull #10167

github

web-flow
Merge 5dd2ed093 into 0c2f045f5
Pull Request #10167: multi: bump Go to 1.24.6

4 of 31 new or added lines in 10 files covered. (12.9%)

23854 existing lines in 284 files now uncovered.

108937 of 199210 relevant lines covered (54.68%)

22026.48 hits per line

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

0.0
/cmd/lnd/main.go
1
package main
2

3
import (
4
        "fmt"
5
        "os"
6

7
        "github.com/jessevdk/go-flags"
8
        "github.com/lightningnetwork/lnd"
9
        "github.com/lightningnetwork/lnd/signal"
10
)
11

UNCOV
12
func main() {
×
UNCOV
13
        // Hook interceptor for os signals.
×
UNCOV
14
        shutdownInterceptor, err := signal.Intercept()
×
UNCOV
15
        if err != nil {
×
16
                _, _ = fmt.Fprintln(os.Stderr, err)
×
17
                os.Exit(1)
×
18
        }
×
19

20
        // Load the configuration, and parse any command line options. This
21
        // function will also set up logging properly.
UNCOV
22
        loadedConfig, err := lnd.LoadConfig(shutdownInterceptor)
×
UNCOV
23
        if err != nil {
×
24
                if e, ok := err.(*flags.Error); !ok || e.Type != flags.ErrHelp {
×
25
                        // Print error if not due to help request.
×
26
                        err = fmt.Errorf("failed to load config: %w", err)
×
27
                        _, _ = fmt.Fprintln(os.Stderr, err)
×
28
                        os.Exit(1)
×
29
                }
×
30

31
                // Help was requested, exit normally.
32
                os.Exit(0)
×
33
        }
UNCOV
34
        implCfg := loadedConfig.ImplementationConfig(shutdownInterceptor)
×
UNCOV
35

×
UNCOV
36
        // Call the "real" main in a nested manner so the defers will properly
×
UNCOV
37
        // be executed in the case of a graceful shutdown.
×
UNCOV
38
        if err = lnd.Main(
×
UNCOV
39
                loadedConfig, lnd.ListenerCfg{}, implCfg, shutdownInterceptor,
×
UNCOV
40
        ); err != nil {
×
41
                _, _ = fmt.Fprintln(os.Stderr, err)
×
42
                os.Exit(1)
×
43
        }
×
44
}
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