| 228 | } |
| 229 | |
| 230 | static 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 | |
| 240 | static struct command_result *param_tok(struct command *cmd, const char *name, |
| 241 | const char *buffer, const jsmntok_t * tok, |
no test coverage detected