DOKK / manpages / debian 12 / libzt-doc / zt_test.3.en
zt_test(3) Library Functions Manual (prm) zt_test(3)

zt_test, zt_tprivate representation of test state

struct zt_test
typedef struct zt_test *zt_t

zt_test is an opaque type that holds test state during execution. The test type is passed as an argument to each test function. It is further passed to both () and zt_assert() functions, to alter test state.

zt_t is is a typedef that cuts the test case boilerplate size.

Internally zt_test stores the outcome of the test as well as data required for non-local exit, necessary when () fails.

zt_test first appeared in libzt 0.1, zt_t first appeared in libzt 0.2.

Zygmunt Krynicki <me@zygoon.pl>

January 12, 2020 libzt 0.3.1