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

Function sanity

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

Source from the content-addressed store, hash-verified

184}
185
186static void sanity(void)
187{
188 for (int i = 0; i < ARRAY_SIZE(buffers); ++i) {
189 struct json *j = json_parse(cmd, buffers[i].str);
190 assert(j->toks->type == JSMN_OBJECT
191 || j->toks->type == JSMN_ARRAY);
192 stest(j, &buffers[i]);
193 }
194}
195
196static struct command_result *param_tok(struct command *cmd, const char *name,
197 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