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

Function no_params

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

Source from the content-addressed store, hash-verified

332}
333
334static void no_params(void)
335{
336 struct json *j = json_parse(cmd, "[]");
337 assert(param(cmd, j->buffer, j->toks, NULL));
338
339 j = json_parse(cmd, "[ 'unexpected' ]");
340 assert(!param(cmd, j->buffer, j->toks, NULL));
341}
342
343/*
344 * Check to make sure there are no programming mistakes.

Callers 1

mainFunction · 0.85

Calls 2

json_parseFunction · 0.70
paramClass · 0.70

Tested by

no test coverage detected