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

Function test_strvec__remove_at_head

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

Source from the content-addressed store, hash-verified

203}
204
205void test_strvec__remove_at_head(void)
206{
207 struct strvec vec = STRVEC_INIT;
208
209 strvec_pushl(&vec, "foo", "bar", "baz", NULL);
210 strvec_remove(&vec, 0);
211 check_strvec(&vec, "bar", "baz", NULL);
212 strvec_clear(&vec);
213}
214
215void test_strvec__remove_at_tail(void)
216{

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