| 115 | test_field(cmd_, ir_, ir_->invreq->fld_ == NULL, #fld_, "unexpected") |
| 116 | |
| 117 | static struct command_result * |
| 118 | test_field(struct command *cmd, |
| 119 | const struct invreq *invreq, |
| 120 | bool test, const char *fieldname, const char *what) |
| 121 | { |
| 122 | if (!test) |
| 123 | return fail_invreq(cmd, invreq, "%s %s", what, fieldname); |
| 124 | return NULL; |
| 125 | } |
| 126 | |
| 127 | /* BOLT-recurrence #12: |
| 128 | * - if `offer_recurrence_optional` or `offer_recurrence_compulsory` are present: |
nothing calls this directly
no outgoing calls
no test coverage detected