| 917 | } |
| 918 | |
| 919 | void test_reftable_stack__empty_add(void) |
| 920 | { |
| 921 | struct reftable_write_options opts = { 0 }; |
| 922 | struct reftable_stack *st = NULL; |
| 923 | char *dir = get_tmp_dir(__LINE__); |
| 924 | struct reftable_stack *st2 = NULL; |
| 925 | |
| 926 | cl_assert_equal_i(reftable_new_stack(&st, dir, &opts), 0); |
| 927 | cl_assert_equal_i(reftable_stack_add(st, write_nothing, |
| 928 | NULL, 0), 0); |
| 929 | cl_assert_equal_i(reftable_new_stack(&st2, dir, &opts), 0); |
| 930 | clear_dir(dir); |
| 931 | reftable_stack_destroy(st); |
| 932 | reftable_stack_destroy(st2); |
| 933 | } |
| 934 | |
| 935 | static int fastlogN(uint64_t sz, uint64_t N) |
| 936 | { |
nothing calls this directly
no test coverage detected