MCPcopy Create free account
hub / github.com/ElementsProject/lightning / main

Function main

cli/test/run-remove-hint.c:92–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92int main(int argc UNUSED, char *argv[])
93{
94 common_setup(argv[0]);
95
96 char *fake_argv[] = { argv[0], "--lightning-dir=/tmp/", "test", "-N", "none", NULL };
97
98 output = tal_strdup(NULL, "");
99 assert(test_main(5, fake_argv) == 0);
100
101 assert(streq(output, "channels=\n"
102 "\n"
103 "├477308sat OUT/OURS ┼ IN/THEIRS 477308sat┤ SCID FLAG ALIAS\n"
104 "├──────────────────────┼──────────────────────┤ 580612x1826x0 [__] BLUEIRON-v0.7.2rc1\n"
105 "my_address=02b78caed0f45120acc48efe867aa506e8ea60f0712a23303178471da0ca2213f5@hdco6sxkbisc7s5t.onion\n"
106 "avail_in=0.00477308500btc (USD $54.37)\n"
107 "num_utxos=0\n"
108 "num_gossipers=1\n"
109 "channels_flags=P:private O:offline\n"
110 "avail_out=0.00477308500btc (USD $54.37)\n"
111 "utxo_amount=0.00000000btc (USD $0.00)\n"
112 "num_channels=1\n"
113 "num_connected=1\n"));
114 tal_free(output);
115 assert(!taken_any());
116 common_shutdown();
117 return 0;
118}

Callers

nothing calls this directly

Calls 4

common_setupFunction · 0.85
tal_freeFunction · 0.85
taken_anyFunction · 0.85
common_shutdownFunction · 0.85

Tested by

no test coverage detected