| 142 | } |
| 143 | |
| 144 | void test_strvec__splice_with_empty_original(void) |
| 145 | { |
| 146 | struct strvec vec = STRVEC_INIT; |
| 147 | const char *replacement[] = { "1", "2" }; |
| 148 | |
| 149 | strvec_pushl(&vec, "foo", "bar", "baz", NULL); |
| 150 | strvec_splice(&vec, 1, 0, replacement, ARRAY_SIZE(replacement)); |
| 151 | check_strvec(&vec, "foo", "1", "2", "bar", "baz", NULL); |
| 152 | strvec_clear(&vec); |
| 153 | } |
| 154 | |
| 155 | void test_strvec__splice_at_tail(void) |
| 156 | { |
nothing calls this directly
no test coverage detected