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

Function test_strvec__replace_with_substring

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

Source from the content-addressed store, hash-verified

193}
194
195void test_strvec__replace_with_substring(void)
196{
197 struct strvec vec = STRVEC_INIT;
198
199 strvec_pushl(&vec, "foo", NULL);
200 strvec_replace(&vec, 0, vec.v[0] + 1);
201 check_strvec(&vec, "oo", NULL);
202 strvec_clear(&vec);
203}
204
205void test_strvec__remove_at_head(void)
206{

Callers

nothing calls this directly

Calls 3

strvec_pushlFunction · 0.85
strvec_replaceFunction · 0.85
strvec_clearFunction · 0.85

Tested by

no test coverage detected