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

Function test_strvec__splice_with_empty_original

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

Source from the content-addressed store, hash-verified

142}
143
144void 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
155void test_strvec__splice_at_tail(void)
156{

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