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

Function test_strvec__replace_in_between

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

Source from the content-addressed store, hash-verified

183}
184
185void test_strvec__replace_in_between(void)
186{
187 struct strvec vec = STRVEC_INIT;
188
189 strvec_pushl(&vec, "foo", "bar", "baz", NULL);
190 strvec_replace(&vec, 1, "replaced");
191 check_strvec(&vec, "foo", "replaced", "baz", NULL);
192 strvec_clear(&vec);
193}
194
195void test_strvec__replace_with_substring(void)
196{

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