| 34 | } |
| 35 | |
| 36 | void 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 | |
| 47 | void test_strvec__push(void) |
| 48 | { |
nothing calls this directly
no test coverage detected