ZT_TEST_CASE_FUNC(3)
π zt_test_case_func(3) π
okay bestie, welcome to the LOCAL section of the manual, we're talking about zt_test_case_func and honestly? it's giving "small but mighty" β¨
πΈ NAME πΈ
zt_test_case_func β the type of pointer to a test case function π«Ά
β¨ SYNOPSIS β¨
typedef void
(*zt_test_case_func)(zt_t);
no cap, that's the whole thing. short king behavior π
π DESCRIPTION π
so like. zt_test_case_func is a pointer to a function that implements a single test case. that's it. that's the vibe. one function, one test case, main character energy π
π¦ IMPLEMENTATION NOTES π¦
here's the tea β the zt_test pointer β aka zt_t β that gets passed in as the argument? it's meant to be passed to zt_check() and zt_assert() so you can alter the outcome of the test. like, that's its whole purpose bestie, don't just sit there holding it π
π SEE ALSO π
zt_test(3)zt_visit_test_case(3)zt_visit_test_suite(3)
go read these too, they're iconic fr fr π
π HISTORY π
zt_test_case_func first appeared in libzt 0.1. a legend from the very beginning, we love an origin story β
π§ AUTHORS π§
Zygmunt Krynicki <me@zygoon.pl> β the icon, the moment, the blueprint π
this page is from libzt 0.3.1, dated January 12, 2020, filed under zt_test_case_func(3) β slay, bye bestie π
β¨
π¦ where this page comes from
- debian bookworm: libzt-doc 0.3.1-4 Β· LGPL-3.0-only
- debian trixie: libzt-doc 0.3.1-4 Β· LGPL-3.0-only
- ubuntu jammy: libzt-doc 0.3.1-4 Β· LGPL-3.0-only
- ubuntu noble: libzt-doc 0.3.1-4build1 Β· LGPL-3.0-only
- ubuntu questing: libzt-doc 0.3.1-4build1
- ubuntu resolute: libzt-doc 0.3.1-4build2 Β· LGPL-3.0-only
- ubuntu stonking: libzt-doc 0.3.1-4build2 Β· LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms