| 184 | } |
| 185 | |
| 186 | static 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 | |
| 196 | static struct command_result *param_tok(struct command *cmd, const char *name, |
| 197 | const char *buffer, const jsmntok_t * tok, |
no test coverage detected