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

Function test_strbuf__dynamic_init

t/unit-tests/u-strbuf.c:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void test_strbuf__dynamic_init(void)
54{
55 struct strbuf buf;
56
57 strbuf_init(&buf, 1024);
58 assert_sane_strbuf(&buf);
59 cl_assert_equal_i(buf.len, 0);
60 cl_assert(buf.alloc >= 1024);
61 cl_assert(buf.buf[0] == '\0');
62 strbuf_release(&buf);
63}
64
65static void t_addch(struct strbuf *buf, const void *data)
66{

Callers

nothing calls this directly

Calls 3

strbuf_initFunction · 0.85
assert_sane_strbufFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected