diff options
author | Seyi Kuforiji <kuforiji98@gmail.com> | 2025-02-25 11:10:44 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-02-25 10:31:23 -0800 |
commit | 149585079facfbdb5713bb8852caea2068cd4f28 (patch) | |
tree | d196c139c2df4c541d51f5246e140de74916151d /commit-graph.c | |
parent | 69bc044def16e8d8f85cd321b00ae53abe96a567 (diff) |
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>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions