]> git.ipfire.org Git - thirdparty/git.git/commit
t/unit-tests: implement clar specific reftable test helper functions
authorSeyi Kuforiji <kuforiji98@gmail.com>
Thu, 24 Jul 2025 14:28:28 +0000 (15:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Jul 2025 18:46:01 +0000 (11:46 -0700)
commit5dd5c4e34561ccbc982512c27926a21ddca5e1e5
tree9ba3618462ed70b116bc6e5b09a917c55318829f
parent7014b55638da979331baf8dc31c4e1d697cf2d67
t/unit-tests: implement clar specific reftable test helper functions

Helper functions defined in `t/unit-tests/lib-reftable.{c,h}` are
required for the reftable-related test files to run. In the current
implementation these functions are designed to conform with our
homegrown unit-testing structure. So in other to convert the reftable
test files, there is need for a clar specific implementation of these
helper functions.

Implement equivalent helper functions in `lib-reftable-clar.{c,h}` to
use clar. These functions conform with the clar testing framework and
become available for all reftable-related test files implemented using
the clar testing framework, which requires them. This will be used by
subsequent commits.

Signed-off-by: Seyi Kuforiji <kuforiji98@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
t/meson.build
t/unit-tests/lib-reftable-clar.c [new file with mode: 0644]
t/unit-tests/lib-reftable-clar.h [new file with mode: 0644]