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

Function sanity

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

Source from the content-addressed store, hash-verified

228}
229
230static void sanity(void)
231{
232 for (int i = 0; i < ARRAY_SIZE(buffers); ++i) {
233 struct json *j = json_parse(cmd, buffers[i].str);
234 assert(j->toks->type == JSMN_OBJECT
235 || j->toks->type == JSMN_ARRAY);
236 stest(j, &buffers[i]);
237 }
238}
239
240static struct command_result *param_tok(struct command *cmd, const char *name,
241 const char *buffer, const jsmntok_t * tok,

Callers 1

mainFunction · 0.70

Calls 2

stestFunction · 0.85
json_parseFunction · 0.70

Tested by

no test coverage detected