MCPcopy Create free account
hub / github.com/git/git / test_strvec__splice_with_empty_replacement

Function test_strvec__splice_with_empty_replacement

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

Source from the content-addressed store, hash-verified

132}
133
134void test_strvec__splice_with_empty_replacement(void)
135{
136 struct strvec vec = STRVEC_INIT;
137
138 strvec_pushl(&vec, "foo", "bar", "baz", NULL);
139 strvec_splice(&vec, 0, 2, NULL, 0);
140 check_strvec(&vec, "baz", NULL);
141 strvec_clear(&vec);
142}
143
144void test_strvec__splice_with_empty_original(void)
145{

Callers

nothing calls this directly

Calls 3

strvec_pushlFunction · 0.85
strvec_spliceFunction · 0.85
strvec_clearFunction · 0.85

Tested by

no test coverage detected