MCPcopy Index your code
hub / github.com/git/git / test_strvec__pop_non_empty_array

Function test_strvec__pop_non_empty_array

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

Source from the content-addressed store, hash-verified

242}
243
244void test_strvec__pop_non_empty_array(void)
245{
246 struct strvec vec = STRVEC_INIT;
247
248 strvec_pushl(&vec, "foo", "bar", "baz", NULL);
249 strvec_pop(&vec);
250 check_strvec(&vec, "foo", "bar", NULL);
251 strvec_clear(&vec);
252}
253
254void test_strvec__split_empty_string(void)
255{

Callers

nothing calls this directly

Calls 3

strvec_pushlFunction · 0.85
strvec_popFunction · 0.85
strvec_clearFunction · 0.85

Tested by

no test coverage detected