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

Function test_strvec__remove_at_tail

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

Source from the content-addressed store, hash-verified

213}
214
215void test_strvec__remove_at_tail(void)
216{
217 struct strvec vec = STRVEC_INIT;
218
219 strvec_pushl(&vec, "foo", "bar", "baz", NULL);
220 strvec_remove(&vec, 2);
221 check_strvec(&vec, "foo", "bar", NULL);
222 strvec_clear(&vec);
223}
224
225void test_strvec__remove_in_between(void)
226{

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