]> git.ipfire.org Git - thirdparty/git.git/commit
t-reftable-merged: use reftable_ref_record_equal to compare ref records
authorChandra Pratap <chandrapratap3519@gmail.com>
Fri, 12 Jul 2024 05:39:02 +0000 (11:09 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jul 2024 16:55:41 +0000 (09:55 -0700)
commit40c80eab83f3f7eae4be14cccf756c0a89931b59
tree44a4afe15e938cf92d6b32468542c8eee93209a7
parent84958ec754bb1bc311cda92bfd67e86fcff9e996
t-reftable-merged: use reftable_ref_record_equal to compare ref records

In the test t_merged_single_record() defined in t-reftable-merged.c,
the 'input' and 'expected' ref records are checked for equality
by comparing their update indices. It is very much possible for
two different ref records to have the same update indices. Use
reftable_ref_record_equal() instead for a stronger check.

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