]> git.ipfire.org Git - thirdparty/git.git/commit
t-strvec: use if_test
authorRené Scharfe <l.s.r@web.de>
Tue, 30 Jul 2024 14:12:36 +0000 (16:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jul 2024 20:32:44 +0000 (13:32 -0700)
commit9ddec6b79af6786bc628e66a75f47040fea1857b
tree02b26ee6c9a84a6aef575e8d61e7cf9cac51274a
parent2c4a6a8d9c550ca863511e9787982558d3698182
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>
t/unit-tests/t-strvec.c