| 531 | } |
| 532 | |
| 533 | static void advanced_fail(void) |
| 534 | { |
| 535 | { |
| 536 | struct json *j = json_parse(cmd, "[ 'anyx' ]"); |
| 537 | u64 *msat; |
| 538 | assert(!param(cmd, j->buffer, j->toks, |
| 539 | p_req("msat", param_u64, &msat), |
| 540 | NULL)); |
| 541 | assert(check_fail()); |
| 542 | assert(strstr(fail_msg, "msat: should be an unsigned 64 bit integer: invalid token '\"anyx\"'")); |
| 543 | } |
| 544 | } |
| 545 | |
| 546 | #define test_cb(cb, T, json_, value, pass) \ |
| 547 | { \ |
no test coverage detected