Libzt-Doc
- libzt(3) Library for unit testing C (-lzt) The library offers routines for writing C unit tests.
- zt_check(3) Both and verify a claim, encompassing a function with arguments, and is meant to be used inside test functions.
- zt_claim(3) binds a verifier factory function with concrete arguments.
- ZT_CMP_BOOL(3)
- ZT_CMP_INT(3) #define ZT_CMP_INT(left, rel, right) zt_cmp_int( ZT_CURRENT_LOCATION(), zt_pack_integer((left), (#left)), zt
- ZT_CMP_PTR(3) #define ZT_CMP_PTR(left, rel, right) zt_cmp_ptr( ZT_CURRENT_LOCATION(), zt_pack_pointer((left), (#left)), zt
- ZT_CMP_RUNE(3) #define ZT_CMP_RUNE(left, rel, right) zt_cmp_rune( ZT_CURRENT_LOCATION(), zt_pack_rune((left), (#left)), zt_
- ZT_CMP_UINT(3) #define ZT_CMP_UINT(left, rel, right) zt_cmp_uint( ZT_CURRENT_LOCATION(), zt_pack_unsigned((left)
- ZT_CURRENT_LOCATION(3) provides describing the location of the source file invoking the macro.
- ZT_FALSE(3) #define ZT_FALSE(value) zt_false( ZT_CURRENT_LOCATION(), zt_pack_boolean((value), #value)) constructs a clai
- zt_location_at(3) packs both arguments into a It exists to facilitate packing a value without any temporary variables.
- zt_location(3) contains a file name and a line number.
- zt_main(3) takes familiar arguments as well as a single test suite function.
- ZT_NOT_NULL(3) #define ZT_NOT_NULL(value) zt_not_null( ZT_CURRENT_LOCATION(), zt_pack_pointer((value), #value)) constructs a c
- ZT_NULL(3) #define ZT_NULL(value) zt_null( ZT_CURRENT_LOCATION(), zt_pack_pointer((value), #value)) constructs a claim tha
- zt_pack_boolean(3) packs a boolean, as well as the string describing the expression evaluated to obtain it, into a variant-like The source
- zt_pack_integer(3) packs an integer, as well as the string describing the expression evaluated to obtain it, into a variant-like The source
- zt_pack_nothing(3) returns an initialized, empty value.
- zt_pack_pointer(3) packs an opaque pointer, as well as the string describing the expression evaluated to obtain it, into a variant-like The
- zt_pack_rune(3) packs a rune, as well as the string describing the expression evaluated to obtain it, into a variant-like The source arg
- zt_pack_string(3) packs an C string, as well as the string describing the expression evaluated to obtain it, into a variant-like The sourc
- zt_pack_unsigned(3) packs an unsigned integer, as well as the string describing the expression evaluated to obtain it, into a variant-like T
- zt_test_case_func(3) is a pointer to a function implementing a single test case.
- zt_test_suite_func(3) is a pointer to a function implementing a test suite, which groups any number of test cases and other test suites.
- zt_test(3) is an opaque type that holds test state during execution.
- ZT_TRUE(3) #define ZT_TRUE(value) zt_true( ZT_CURRENT_LOCATION(), zt_pack_boolean((value), #value)) constructs a claim
- zt_value(3) is a variant-like type that is used to pass values around libzt internals.
- zt_visit_test_case(3) under their macro from and are used to implement discovery for test suites and test cases
- zt_visitor(3) is an interface for exploring test suites and test cases.