| 78 | } |
| 79 | |
| 80 | static struct command_result *WARN_UNUSED_RESULT |
| 81 | fail_internalerr(struct command *cmd, |
| 82 | const struct inv *inv, |
| 83 | const char *fmt, ...) |
| 84 | { |
| 85 | va_list ap; |
| 86 | struct command_result *ret; |
| 87 | |
| 88 | va_start(ap, fmt); |
| 89 | ret = fail_inv_level(cmd, inv, LOG_BROKEN, fmt, ap); |
| 90 | va_end(ap); |
| 91 | |
| 92 | return ret; |
| 93 | } |
| 94 | |
| 95 | #define inv_must_have(cmd_, i_, fld_) \ |
| 96 | test_field(cmd_, i_, i_->inv->fld_ != NULL, #fld_, "missing") |
no test coverage detected