]> git.ipfire.org Git - thirdparty/git.git/commit
t-reftable-stack: add test for stack iterators
authorChandra Pratap <chandrapratap3519@gmail.com>
Sun, 8 Sep 2024 04:06:01 +0000 (09:36 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Sep 2024 17:12:56 +0000 (10:12 -0700)
commit2b14ced370aea017efc32b525fd72a6dd2cc60c5
treea1faa56531842a07fd52facf6483ca9161263bdc
parente87952443a90fae9690db6c8dbf05d9ba97541ba
t-reftable-stack: add test for stack iterators

reftable_stack_init_ref_iterator and reftable_stack_init_log_iterator
as defined by reftable/stack.{c,h} initialize a stack iterator to
iterate over the ref and log records in a reftable stack respectively.
Since these functions are not exercised by any of the existing tests,
add a test for them.

Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/unit-tests/t-reftable-stack.c