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

Function no_params

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

Source from the content-addressed store, hash-verified

288}
289
290static void no_params(void)
291{
292 struct json *j = json_parse(cmd, "[]");
293 assert(param(cmd, j->buffer, j->toks, NULL));
294
295 j = json_parse(cmd, "[ 'unexpected' ]");
296 assert(!param(cmd, j->buffer, j->toks, NULL));
297}
298
299
300#if DEVELOPER

Callers 1

mainFunction · 0.85

Calls 2

json_parseFunction · 0.70
paramClass · 0.70

Tested by

no test coverage detected