| 51 | } |
| 52 | |
| 53 | void 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 | |
| 65 | static void t_addch(struct strbuf *buf, const void *data) |
| 66 | { |
nothing calls this directly
no test coverage detected