MCPcopy Create free account
hub / github.com/git/git / test_strvec__splice_at_tail

Function test_strvec__splice_at_tail

t/unit-tests/u-strvec.c:155–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void 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
166void test_strvec__replace_at_head(void)
167{

Callers

nothing calls this directly

Calls 3

strvec_pushlFunction · 0.85
strvec_spliceFunction · 0.85
strvec_clearFunction · 0.85

Tested by

no test coverage detected