| 83 | } |
| 84 | |
| 85 | static struct command_result *WARN_UNUSED_RESULT |
| 86 | fail_internalerr(struct command *cmd, |
| 87 | const struct invreq *invreq, |
| 88 | const char *fmt, ...) |
| 89 | { |
| 90 | va_list ap; |
| 91 | struct command_result *ret; |
| 92 | |
| 93 | va_start(ap, fmt); |
| 94 | ret = fail_invreq_level(cmd, invreq, LOG_BROKEN, fmt, ap); |
| 95 | va_end(ap); |
| 96 | |
| 97 | return ret; |
| 98 | } |
| 99 | |
| 100 | #define invreq_must_have(cmd_, ir_, fld_) \ |
| 101 | test_field(cmd_, ir_, ir_->invreq->fld_ != NULL, #fld_, "missing") |
no test coverage detected