]> git.ipfire.org Git - thirdparty/git.git/commit
t-reftable-readwrite: add test for known error
authorChandra Pratap <chandrapratap3519@gmail.com>
Tue, 13 Aug 2024 14:34:50 +0000 (20:04 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Aug 2024 17:08:03 +0000 (10:08 -0700)
commit5e440bf7f1884e79f345225e55fbe3ccabf42b5a
treed5c2d075518c4cb4caf299287272279131a93b3a
parent12f9ea473f00384147e334ff1f05c8f3b2fe1a78
t-reftable-readwrite: add test for known error

When using reftable_writer_add_ref() to add a ref record to a
reftable writer, The update_index of the ref record must be within
the limits set by reftable_writer_set_limits(), or REFTABLE_API_ERROR
is returned. This scenario is currently left untested. Add a test
case for the same.

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-readwrite.c