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

Function test_strvec__replace_at_head

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

Source from the content-addressed store, hash-verified

164}
165
166void test_strvec__replace_at_head(void)
167{
168 struct strvec vec = STRVEC_INIT;
169
170 strvec_pushl(&vec, "foo", "bar", "baz", NULL);
171 strvec_replace(&vec, 0, "replaced");
172 check_strvec(&vec, "replaced", "bar", "baz", NULL);
173 strvec_clear(&vec);
174}
175
176void test_strvec__replace_at_tail(void)
177{

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