]> git.ipfire.org Git - thirdparty/git.git/commit
t-reftable-merged: add test for REFTABLE_FORMAT_ERROR
authorChandra Pratap <chandrapratap3519@gmail.com>
Fri, 12 Jul 2024 05:39:03 +0000 (11:09 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jul 2024 16:55:41 +0000 (09:55 -0700)
commit9a1fb8af9887c99420f41a36667e4a7905d6266b
tree0105f790401a215311bde707ecc24840a12121e6
parent40c80eab83f3f7eae4be14cccf756c0a89931b59
t-reftable-merged: add test for REFTABLE_FORMAT_ERROR

When calling reftable_new_merged_table(), if the hash ID of the
passed reftable_table parameter doesn't match the passed hash_id
parameter, a REFTABLE_FORMAT_ERROR is thrown. This case is
currently left unexercised, so add a test 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-merged.c