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

Function test_strvec__clear

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

Source from the content-addressed store, hash-verified

34}
35
36void test_strvec__clear(void)
37{
38 struct strvec vec = STRVEC_INIT;
39
40 strvec_push(&vec, "foo");
41 strvec_clear(&vec);
42 cl_assert_equal_p(vec.v, empty_strvec);
43 cl_assert_equal_i(vec.nr, 0);
44 cl_assert_equal_i(vec.alloc, 0);
45}
46
47void test_strvec__push(void)
48{

Callers

nothing calls this directly

Calls 2

strvec_pushFunction · 0.85
strvec_clearFunction · 0.85

Tested by

no test coverage detected