]> git.ipfire.org Git - thirdparty/git.git/commit
t: move reftable/merged_test.c to the unit testing framework
authorChandra Pratap <chandrapratap3519@gmail.com>
Fri, 12 Jul 2024 05:38:57 +0000 (11:08 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jul 2024 16:55:39 +0000 (09:55 -0700)
commit9cdfd1d7df81f911e8c4f120f3aaf1b0d981e8a1
tree5514513e290235d75e080927c29d86ecf01601f6
parent06e570c0dfb2a2deb64d217db78e2ec21672f558
t: move reftable/merged_test.c to the unit testing framework

reftable/merged_test.c exercises the functions defined in
reftable/merged.{c, h}. Migrate reftable/merged_test.c to the unit
testing framework. Migration involves refactoring the tests
to use the unit testing framework instead of reftable's test
framework and renaming the tests according to unit-tests' naming
conventions.

Also, move strbuf_add_void() and noop_flush() from
reftable/test_framework.c to the ported test. This is because
both these functions are used in the merged tests and
reftable/test_framework.{c, h} is not #included in the ported test.

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>
Makefile
reftable/reftable-tests.h
t/helper/test-reftable.c
t/unit-tests/t-reftable-merged.c [moved from reftable/merged_test.c with 84% similarity]