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

Function test_reftable_stack__empty_add

t/unit-tests/u-reftable-stack.c:919–933  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

917}
918
919void 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
935static int fastlogN(uint64_t sz, uint64_t N)
936{

Callers

nothing calls this directly

Calls 5

get_tmp_dirFunction · 0.85
reftable_new_stackFunction · 0.85
reftable_stack_addFunction · 0.85
clear_dirFunction · 0.85
reftable_stack_destroyFunction · 0.85

Tested by

no test coverage detected