logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

zt_test, zt_t — private representation of test state

Authors

       Zygmunt Krynicki <me@zygoon.pl>

libzt 0.3.1                                     January 12, 2020                                      zt_test(3)

Description

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 zt_check() 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 zt_assert() fails.

History

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

Name

       zt_test, zt_t — private representation of test state

Synopsis

structzt_testtypedefstructzt_test*zt_t

See Also