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

Function advanced_fail

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

Source from the content-addressed store, hash-verified

595}
596
597static void advanced_fail(void)
598{
599 {
600 struct json *j = json_parse(cmd, "[ 'anyx' ]");
601 u64 *msat;
602 assert(!param(cmd, j->buffer, j->toks,
603 p_req("msat", param_u64, &msat),
604 NULL));
605 assert(check_fail());
606 assert(strstr(fail_msg, "msat: should be an unsigned 64 bit integer: invalid token '\"anyx\"'"));
607 }
608}
609
610#define test_cb(cb, T, json_, value, pass) \
611{ \

Callers 1

mainFunction · 0.85

Calls 3

check_failFunction · 0.85
json_parseFunction · 0.70
paramClass · 0.70

Tested by

no test coverage detected