]> git.ipfire.org Git - thirdparty/git.git/commit
t-reftable-merged: improve the test t_merged_single_record()
authorChandra Pratap <chandrapratap3519@gmail.com>
Fri, 12 Jul 2024 05:38:59 +0000 (11:08 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jul 2024 16:55:40 +0000 (09:55 -0700)
commitc755c2f3519075028047b092dd26706ac75d1aff
tree09251306e506969789668de00297cfabd4194a12
parente8ed7d1974af3d38e7c6f2ad07fd4ea49ae29474
t-reftable-merged: improve the test t_merged_single_record()

In t-reftable-merged.c, the test t_merged_single_record() ensures
that a ref ('a') which occurs in only one of the records ('r2')
can be retrieved. Improve this test by adding another record 'r3'
to ensure that ref 'a' only occurs in 'r2' and that merged tables
don't simply read the last record.

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