| 153 | } |
| 154 | |
| 155 | void test_strvec__splice_at_tail(void) |
| 156 | { |
| 157 | struct strvec vec = STRVEC_INIT; |
| 158 | const char *replacement[] = { "1", "2" }; |
| 159 | |
| 160 | strvec_pushl(&vec, "foo", "bar", NULL); |
| 161 | strvec_splice(&vec, 2, 0, replacement, ARRAY_SIZE(replacement)); |
| 162 | check_strvec(&vec, "foo", "bar", "1", "2", NULL); |
| 163 | strvec_clear(&vec); |
| 164 | } |
| 165 | |
| 166 | void test_strvec__replace_at_head(void) |
| 167 | { |
nothing calls this directly
no test coverage detected