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

Function test_strvec__splice_just_initialized_strvec

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

Source from the content-addressed store, hash-verified

89}
90
91void test_strvec__splice_just_initialized_strvec(void)
92{
93 struct strvec vec = STRVEC_INIT;
94 const char *replacement[] = { "foo" };
95
96 strvec_splice(&vec, 0, 0, replacement, ARRAY_SIZE(replacement));
97 check_strvec(&vec, "foo", NULL);
98 strvec_clear(&vec);
99}
100
101void test_strvec__splice_with_same_size_replacement(void)
102{

Callers

nothing calls this directly

Calls 2

strvec_spliceFunction · 0.85
strvec_clearFunction · 0.85

Tested by

no test coverage detected