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

Function sendpay_nulltok

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

Source from the content-addressed store, hash-verified

526}
527
528static void sendpay_nulltok(void)
529{
530 struct json *j = json_parse(cmd, "[ 'A', '123']");
531
532 const jsmntok_t *routetok, *note = (void *) 65535;
533 u64 *msatoshi;
534 unsigned *cltv;
535
536 if (!param(cmd, j->buffer, j->toks,
537 p_req("route", param_tok, &routetok),
538 p_req("cltv", param_number, &cltv),
539 p_opt("note", param_tok, &note),
540 p_opt("msatoshi", param_u64, &msatoshi),
541 NULL))
542 assert(false);
543
544 assert(note == NULL);
545 assert(msatoshi == NULL);
546}
547
548static void advanced(void)
549{

Callers 1

mainFunction · 0.85

Calls 2

json_parseFunction · 0.70
paramClass · 0.70

Tested by

no test coverage detected