]> git.ipfire.org Git - thirdparty/git.git/commit
t: move reftable/tree_test.c to the unit testing framework
authorChandra Pratap <chandrapratap3519@gmail.com>
Sun, 4 Aug 2024 14:06:46 +0000 (19:36 +0530)
committerJunio C Hamano <gitster@pobox.com>
Sun, 4 Aug 2024 16:50:26 +0000 (09:50 -0700)
commitec9c0704fc6ad646f5482d3e31e3a5b3be1677ef
tree131bf0dd295a59033d96e8ed1d9ebdf9d5a8da8e
parente5a0f7076fcb2e9e6b3a8d125ac0e86420a96da1
t: move reftable/tree_test.c to the unit testing framework

reftable/tree_test.c exercises the functions defined in
reftable/tree.{c, h}. Migrate reftable/tree_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 to align with unit-tests' standards.

Also add a comment to help understand the test routine.

Note that this commit mostly moves the test from reftable/ to
t/unit-tests/ and most of the refactoring is performed by the
trailing commits.

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
reftable/tree_test.c [deleted file]
t/helper/test-reftable.c
t/unit-tests/t-reftable-tree.c [new file with mode: 0644]