zt_test(3)

zt_test3

Private representation of test state

Usage

struct zt_test typedef struct zt_test *zt_t

Overview

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.

Releases

Unchanged in 3 releases since Debian 11 (Bullseye).

  1. 11–13

History

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

Authors

Zygmunt Krynicki ⟨[email protected]⟩

From libzt-doc 0.3.1-4 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.