git/t/unit-tests
Seyi Kuforiji 149585079f t/unit-tests: convert oidtree test to use clar test framework
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>
2025-02-25 10:31:23 -08:00
..
clar
.gitignore
generate-clar-decls.sh t/unit-tests: handle dashes in test suite filenames 2025-01-17 14:35:11 -08:00
generate-clar-suites.sh
lib-oid.c t/unit-tests: implement clar specific oid helper functions 2025-02-25 10:31:22 -08:00
lib-oid.h t/unit-tests: implement clar specific oid helper functions 2025-02-25 10:31:22 -08:00
lib-reftable.c
lib-reftable.h
t-reftable-basics.c reftable/basics: adjust `common_prefix_size()` to return `size_t` 2025-01-21 14:20:29 -08:00
t-reftable-block.c
t-reftable-merged.c t-reftable-merged: handle realloc errors 2024-12-28 08:00:45 -08:00
t-reftable-pq.c
t-reftable-reader.c
t-reftable-readwrite.c Merge branch 'ps/reftable-sign-compare' 2025-01-28 13:02:24 -08:00
t-reftable-record.c reftable/basics: adjust `hash_size()` to return `uint32_t` 2025-01-21 14:20:29 -08:00
t-reftable-stack.c reftable: prevent 'update_index' changes after adding records 2025-01-22 09:51:36 -08:00
t-trailer.c
t-urlmatch-normalization.c
test-lib.c
test-lib.h
u-ctype.c
u-example-decorate.c t/unit-tests: adapt example decorate test to use clar test framework 2025-01-31 14:58:44 -08:00
u-hash.c global: adapt callers to use generic hash context helpers 2025-01-31 10:06:11 -08:00
u-hashmap.c t/unit-tests: convert hashmap test to use clar test framework 2025-01-31 14:58:44 -08:00
u-mem-pool.c t/unit-tests: convert mem-pool test to use clar test framework 2025-01-17 14:35:11 -08:00
u-oid-array.c t/unit-tests: convert oid-array test to use clar test framework 2025-02-25 10:31:22 -08:00
u-oidmap.c t/unit-tests: convert oidmap test to use clar test framework 2025-02-25 10:31:22 -08:00
u-oidtree.c t/unit-tests: convert oidtree test to use clar test framework 2025-02-25 10:31:23 -08:00
u-prio-queue.c t/unit-tests: adapt priority queue test to use clar test framework 2025-01-17 14:35:12 -08:00
u-reftable-tree.c t/unit-tests: convert reftable tree test to use clar test framework 2025-01-17 14:35:12 -08:00
u-strbuf.c t/unit-tests: convert strbuf test to use clar test framework 2025-01-31 14:58:45 -08:00
u-strcmp-offset.c t/unit-tests: convert strcmp-offset test to use clar test framework 2025-01-31 14:58:45 -08:00
u-strvec.c Merge branch 'ps/ci-meson' 2024-12-23 09:32:25 -08:00
unit-test.c t/unit-tests: implement clar specific oid helper functions 2025-02-25 10:31:22 -08:00
unit-test.h