| 595 | } |
| 596 | |
| 597 | static void advanced_fail(void) |
| 598 | { |
| 599 | { |
| 600 | struct json *j = json_parse(cmd, "[ 'anyx' ]"); |
| 601 | u64 *msat; |
| 602 | assert(!param(cmd, j->buffer, j->toks, |
| 603 | p_req("msat", param_u64, &msat), |
| 604 | NULL)); |
| 605 | assert(check_fail()); |
| 606 | assert(strstr(fail_msg, "msat: should be an unsigned 64 bit integer: invalid token '\"anyx\"'")); |
| 607 | } |
| 608 | } |
| 609 | |
| 610 | #define test_cb(cb, T, json_, value, pass) \ |
| 611 | { \ |
no test coverage detected