| 95 | } |
| 96 | |
| 97 | static struct command_result *WARN_UNUSED_RESULT |
| 98 | fail_internalerr(struct command *cmd, |
| 99 | const struct invreq *invreq, |
| 100 | const char *fmt, ...) |
| 101 | { |
| 102 | va_list ap; |
| 103 | struct command_result *ret; |
| 104 | |
| 105 | va_start(ap, fmt); |
| 106 | ret = fail_invreq_level(cmd, invreq, LOG_BROKEN, fmt, ap); |
| 107 | va_end(ap); |
| 108 | |
| 109 | return ret; |
| 110 | } |
| 111 | |
| 112 | #define invreq_must_have(cmd_, ir_, fld_) \ |
| 113 | test_field(cmd_, ir_, ir_->invreq->fld_ != NULL, #fld_, "missing") |
no test coverage detected