< Summary - Combined Code Coverage

Information
Class: NLightning.Client.Utils.ClientUtils
Assembly: NLightning.Client
File(s): /home/runner/work/NLightning/NLightning/src/NLightning.Client/Utils/ClientUtils.cs
Tag: 57_24045730253
Line coverage
0%
Covered lines: 0
Uncovered lines: 24
Coverable lines: 24
Total lines: 30
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
ShowUsage()100%210%
ShowUsage()100%210%

File(s)

/home/runner/work/NLightning/NLightning/src/NLightning.Client/Utils/ClientUtils.cs

#LineLine coverage
 1namespace NLightning.Client.Utils;
 2
 3public static class ClientUtils
 4{
 5    public static void ShowUsage()
 06    {
 07        Console.WriteLine("NLightning Node Client");
 08        Console.WriteLine("Usage:");
 09        Console.WriteLine("  nltg [options] [command]");
 010        Console.WriteLine();
 011        Console.WriteLine("Options:");
 012        Console.WriteLine("  --network, -n <network>    Network to use (mainnet, testnet, regtest) [default: mainnet]");
 013        Console.WriteLine("  --cookie, -c <path>        Path to cookie file");
 014        Console.WriteLine("  --help, -h, -?             Show this help message");
 015        Console.WriteLine();
 016        Console.WriteLine("Commands:");
 017        Console.WriteLine("  info                         Get node information via IPC");
 018        Console.WriteLine("  connect <node>               Connect to a peer node");
 019        Console.WriteLine("  listpeers                    List all connected peers");
 020        Console.WriteLine("  getaddress <p2tr|p2wpkh|all> Gets a unused address of the requested type");
 021        Console.WriteLine("  walletbalance                Gets the wallet balance");
 022        Console.WriteLine("  openchannel                  Open a channel to peer");
 023        Console.WriteLine();
 024        Console.WriteLine("Environment Variables:");
 025        Console.WriteLine("  NLTG_NETWORK               Network to use");
 026        Console.WriteLine("  NLTG_COOKIE                Path to cookie file");
 027        Console.WriteLine();
 028        Console.WriteLine("Cookie file location: ~/.nltg/{network}/nltg.ipc");
 029    }
 30}

Methods/Properties

ShowUsage()
ShowUsage()