diff options
| author | René Scharfe <l.s.r@web.de> | 2024-07-30 16:08:19 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-07-30 13:32:43 -0700 |
| commit | 96c6304c1866d8dd2f17208e906749f999df0911 (patch) | |
| tree | 64f13cd19f337208f7b67e4bb2c105012bf0d21f /commit-reach.c | |
| parent | unit-tests: show location of checks outside of tests (diff) | |
| download | git-96c6304c1866d8dd2f17208e906749f999df0911.tar.gz git-96c6304c1866d8dd2f17208e906749f999df0911.zip | |
unit-tests: add if_test
The macro TEST only allows defining a test that consists of a single
expression. Add a new macro, if_test, which provides a way to define
unit tests that are made up of one or more statements.
if_test allows defining self-contained tests en bloc, a bit like
test_expect_success does for regular tests. It acts like a conditional;
the test body is executed if test_skip_all() had not been called before.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-reach.c')
0 files changed, 0 insertions, 0 deletions
