aboutsummaryrefslogtreecommitdiffstats
path: root/t/unit-tests/u-oidtree.c
AgeCommit message (Collapse)AuthorFilesLines
2025-02-25t/unit-tests: convert oidtree test to use clar test frameworkSeyi Kuforiji1-0/+107
Adapt oidtree test script to clar framework by using clar assertions where necessary. `cl_parse_any_oid()` ensures the hash algorithm is set before parsing. This prevents issues from an uninitialized or invalid hash algorithm. Introduce 'test_oidtree__initialize` handles the to set up of the global oidtree variable and `test_oidtree__cleanup` frees the oidtree when all tests are completed. With this change, `check_each` stops at the first error encountered, making it easier to address it. Mentored-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Seyi Kuforiji <kuforiji98@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>