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

Function test_strvec__replace_at_tail

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

Source from the content-addressed store, hash-verified

174}
175
176void test_strvec__replace_at_tail(void)
177{
178 struct strvec vec = STRVEC_INIT;
179 strvec_pushl(&vec, "foo", "bar", "baz", NULL);
180 strvec_replace(&vec, 2, "replaced");
181 check_strvec(&vec, "foo", "bar", "replaced", NULL);
182 strvec_clear(&vec);
183}
184
185void test_strvec__replace_in_between(void)
186{

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