]> git.ipfire.org Git - thirdparty/git.git/commit
t-reftable-basics: use if_test
authorRené Scharfe <l.s.r@web.de>
Tue, 30 Jul 2024 14:10:59 +0000 (16:10 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jul 2024 20:32:44 +0000 (13:32 -0700)
commit2c4a6a8d9c550ca863511e9787982558d3698182
treee97dfe24f10a76e4d041d0ceb1bf332cc03bfaea
parente51d7ef9405e45bbc744e688b232d311034ef01d
t-reftable-basics: 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 overhead of defining and calling single-use functions by
using if_test instead.

Run the tests in the order of definition.  We can reorder them like that
because they are independent.  Technically this changes the output, but
retains the meaning of a full run and allows for easier review e.g. with
diff option --ignore-all-space.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/unit-tests/t-reftable-basics.c