]> git.draconx.ca Git - dxcommon.git/blob - src/tap.h
DX_C_ALIGNAS: Work around bash-5 parsing bug.
[dxcommon.git] / src / tap.h
1 /*
2  * Copyright © 2015 Nick Bowler
3  *
4  * Simple TAP output library for C programs.
5  *
6  * License WTFPL2: Do What The Fuck You Want To Public License, version 2.
7  * This is free software: you are free to do what the fuck you want to.
8  * There is NO WARRANTY, to the extent permitted by law.
9  */
10
11 #ifndef DX_TAP_H_
12 #define DX_TAP_H_
13
14 #include <stdarg.h>
15
16 void tap_plan(unsigned expected_tests);
17 void tap_done(void);
18
19 void tap_vbail_out(const char *fmt, va_list ap);
20 void tap_bail_out(const char *fmt, ...);
21
22 void tap_vskip_all(const char *fmt, va_list ap);
23 void tap_skip_all(const char *fmt, ...);
24
25 void tap_vdiag(const char *fmt, va_list ap);
26 void tap_diag(const char *fmt, ...);
27
28 int tap_vresult(int ok, const char *fmt, va_list ap);
29 int tap_result(int ok, const char *fmt, ...);
30
31 #endif