| 164 | } |
| 165 | |
| 166 | void test_strvec__replace_at_head(void) |
| 167 | { |
| 168 | struct strvec vec = STRVEC_INIT; |
| 169 | |
| 170 | strvec_pushl(&vec, "foo", "bar", "baz", NULL); |
| 171 | strvec_replace(&vec, 0, "replaced"); |
| 172 | check_strvec(&vec, "replaced", "bar", "baz", NULL); |
| 173 | strvec_clear(&vec); |
| 174 | } |
| 175 | |
| 176 | void test_strvec__replace_at_tail(void) |
| 177 | { |
nothing calls this directly
no test coverage detected