git/t/unit-tests
René Scharfe 9ddec6b79a t-strvec: use if_test
The macro TEST takes a single expression.  If a test requires multiple
statements then they need to be placed in a function that's called in
the TEST expression.

Remove the cognitive overhead of defining and calling single-use
functions by using if_test instead.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-07-30 13:32:44 -07:00
..
.gitignore
lib-oid.c t/: migrate helper/test-oidtree.c to unit-tests/t-oidtree.c 2024-06-12 13:33:20 -07:00
lib-oid.h hash-ll: merge with "hash.h" 2024-06-14 10:26:33 -07:00
t-ctype.c t-ctype: use if_test 2024-07-30 13:32:43 -07:00
t-example-decorate.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00
t-hash.c t/: migrate helper/test-{sha1, sha256} to unit-tests/t-hash 2024-05-29 09:11:41 -07:00
t-mem-pool.c mem-pool: fix big allocations 2023-12-28 12:22:43 -08:00
t-oidmap.c t: migrate helper/test-oidmap.c to unit-tests/t-oidmap.c 2024-07-03 09:12:14 -07:00
t-oidtree.c t/: migrate helper/test-oidtree.c to unit-tests/t-oidtree.c 2024-06-12 13:33:20 -07:00
t-prio-queue.c t-prio-queue: simplify using compound literals 2024-04-02 13:41:32 -07:00
t-reftable-basics.c t-reftable-basics: use if_test 2024-07-30 13:32:44 -07:00
t-reftable-record.c t-reftable-record: add tests for reftable_log_record_compare_key() 2024-07-02 08:12:26 -07:00
t-strbuf.c global: improve const correctness when assigning string constants 2024-06-07 10:30:48 -07:00
t-strcmp-offset.c t/: port helper/test-strcmp-offset.c to unit-tests/t-strcmp-offset.c 2024-05-20 13:39:49 -07:00
t-strvec.c t-strvec: use if_test 2024-07-30 13:32:44 -07:00
t-trailer.c trailer unit tests: inspect iterator contents 2024-05-02 09:57:08 -07:00
test-lib.c unit-tests: add if_test 2024-07-30 13:32:43 -07:00
test-lib.h unit-tests: add if_test 2024-07-30 13:32:43 -07:00