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

Function advanced_fail

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

Source from the content-addressed store, hash-verified

531}
532
533static void advanced_fail(void)
534{
535 {
536 struct json *j = json_parse(cmd, "[ 'anyx' ]");
537 u64 *msat;
538 assert(!param(cmd, j->buffer, j->toks,
539 p_req("msat", param_u64, &msat),
540 NULL));
541 assert(check_fail());
542 assert(strstr(fail_msg, "msat: should be an unsigned 64 bit integer: invalid token '\"anyx\"'"));
543 }
544}
545
546#define test_cb(cb, T, json_, value, pass) \
547{ \

Callers 1

mainFunction · 0.85

Calls 3

check_failFunction · 0.85
json_parseFunction · 0.70
paramClass · 0.70

Tested by

no test coverage detected