| 142 | } |
| 143 | |
| 144 | static inline const char* forward_status_name(enum forward_status status) |
| 145 | { |
| 146 | switch(status) { |
| 147 | case FORWARD_OFFERED: |
| 148 | return "offered"; |
| 149 | case FORWARD_SETTLED: |
| 150 | return "settled"; |
| 151 | case FORWARD_FAILED: |
| 152 | return "failed"; |
| 153 | case FORWARD_LOCAL_FAILED: |
| 154 | return "local_failed"; |
| 155 | case FORWARD_ANY: |
| 156 | return "any"; |
| 157 | } |
| 158 | abort(); |
| 159 | } |
| 160 | |
| 161 | bool string_to_forward_status(const char *status_str, size_t len, |
| 162 | enum forward_status *status); |
no test coverage detected