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

Function command_fail

common/test/run-param.c:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24static struct command_result cmd_failed;
25
26struct command_result *command_fail(struct command *cmd,
27 enum jsonrpc_errcode code, const char *fmt, ...)
28{
29 failed = true;
30 va_list ap;
31 va_start(ap, fmt);
32 fail_msg = tal_vfmt(cmd, fmt, ap);
33 va_end(ap);
34 return &cmd_failed;
35}
36
37/* AUTOGENERATED MOCKS START */
38/* Generated stub for deprecated_apis */

Callers 15

command_fail_badparamFunction · 0.50
post_checkFunction · 0.50
parse_by_positionFunction · 0.50
parse_by_nameFunction · 0.50
param_arrFunction · 0.50
param_subcommandFunction · 0.50
paramFunction · 0.50
param_hops_arrayFunction · 0.50
param_secrets_arrayFunction · 0.50
param_bitcoin_addressFunction · 0.50
param_outpoint_arrFunction · 0.50
param_extra_tlvsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected