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

Function test_strvec__remove_in_between

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

Source from the content-addressed store, hash-verified

223}
224
225void test_strvec__remove_in_between(void)
226{
227 struct strvec vec = STRVEC_INIT;
228
229 strvec_pushl(&vec, "foo", "bar", "baz", NULL);
230 strvec_remove(&vec, 1);
231 check_strvec(&vec, "foo", "baz", NULL);
232 strvec_clear(&vec);
233}
234
235void test_strvec__pop_empty_array(void)
236{

Callers

nothing calls this directly

Calls 3

strvec_pushlFunction · 0.85
strvec_removeFunction · 0.85
strvec_clearFunction · 0.85

Tested by

no test coverage detected