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

Function test_strvec__push

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

Source from the content-addressed store, hash-verified

45}
46
47void test_strvec__push(void)
48{
49 struct strvec vec = STRVEC_INIT;
50
51 strvec_push(&vec, "foo");
52 check_strvec(&vec, "foo", NULL);
53
54 strvec_push(&vec, "bar");
55 check_strvec(&vec, "foo", "bar", NULL);
56
57 strvec_clear(&vec);
58}
59
60void test_strvec__pushf(void)
61{

Callers

nothing calls this directly

Calls 2

strvec_pushFunction · 0.85
strvec_clearFunction · 0.85

Tested by

no test coverage detected