]> git.ipfire.org Git - thirdparty/git.git/commit
t-reftable-stack: use reftable_ref_record_equal() to compare ref records
authorChandra Pratap <chandrapratap3519@gmail.com>
Sun, 8 Sep 2024 04:05:59 +0000 (09:35 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Sep 2024 17:12:15 +0000 (10:12 -0700)
commit1052280136cab7698e325289f6fac2af8fd7534e
tree4f4e76ab704d2fc1dca9762aa5cd3415f59bab3c
parent476abc39babbdc67782ad04c4fa1d965ca8ff34d
t-reftable-stack: use reftable_ref_record_equal() to compare ref records

In the current stack tests, ref records are compared for equality
by sometimes using the dedicated function for ref-record comparison,
reftable_ref_record_equal(), and sometimes by explicity comparing
contents of the ref records.

The latter method is undesired because there can exist unequal ref
records with some of the contents being equal. Replace the latter
instances of ref-record comparison with the former. This has the
added benefit of preserving uniformity throughout the test file.

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