| 67 | } |
| 68 | |
| 69 | static const char *payment_status_to_string(const enum payment_status status) |
| 70 | { |
| 71 | switch (status) { |
| 72 | case PAYMENT_COMPLETE: |
| 73 | return "complete"; |
| 74 | case PAYMENT_FAILED: |
| 75 | return "failed"; |
| 76 | case PAYMENT_PENDING: |
| 77 | return "pending"; |
| 78 | } |
| 79 | //This should never happen |
| 80 | abort(); |
| 81 | } |
| 82 | |
| 83 | |
| 84 | static void destroy_waitsendpay_command(struct waitsendpay_command *pc) |
no test coverage detected