]> git.ipfire.org Git - thirdparty/git.git/commit
t/unit-tests: convert oid-array test to use clar test framework
authorSeyi Kuforiji <kuforiji98@gmail.com>
Tue, 25 Feb 2025 10:10:42 +0000 (11:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Feb 2025 18:31:22 +0000 (10:31 -0800)
commit869a1edf4470fab379fdead671036d6906112da2
tree6b9a4327e1f1650d4e436ea5cc469af36ccf2de7
parenta16a2ee312b088ae6ac2ab3302ed191d19a71718
t/unit-tests: convert oid-array test to use clar test framework

Adapt oid-array test script to clar framework by using clar assertions
where necessary. Remove descriptions from macros to reduce
redundancy, and move test input arrays to global scope for reuse across
multiple test functions. Introduce `test_oid_array__initialize()` to
explicitly initialize the hash algorithm.

These changes streamline the test suite, making individual tests
self-contained and reducing redundant code.

Mentored-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Seyi Kuforiji <kuforiji98@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
t/meson.build
t/unit-tests/t-oid-array.c [deleted file]
t/unit-tests/u-oid-array.c [new file with mode: 0644]