ZT_TEST(3)
π zt_test(3) β the LOCAL manual, bestie edition π
okay so real quick before we get into it: this is zt_test(3), and it lives in the LOCAL section of your manual pages. yes that "UNTITLED()" thing up top is giving placeholder energy but we don't judge, we just vibe. let's GO π¦
β¨ NAME β¨
zt_test, zt_t β the private lil representation of test state π
like... the private one. not for you to poke at. it's giving backstage pass, iykyk.
πΈ SYNOPSIS πΈ
struct zt_test
typedef struct zt_test *zt_t
that's it. that's the whole synopsis. short and iconic, as she should be β¨
π DESCRIPTION π
okay so zt_test is an opaque type β meaning you can see her, you just can't touch her β and she holds the test state while a test is running. think of her as the main character carrying all the vibes so nobody else has to π«Ά
the test type gets passed as an argument to each test function. like every single one. no skipping, no exceptions, fr fr.
and then β plot twist β she also gets passed to both zt_check() and zt_assert(), because that's how you alter test state. they need her. she's the moment. π
then there's zt_t, which is a typedef that exists purely to cut down on test case boilerplate size. she's the shorter, cuter nickname for the whole thing. less typing, same energy, slay. π
and internally? zt_test stores the outcome of the test β yes she's keeping receipts β plus all the data required for non-local exit, which is the whole thing you need when zt_assert() fails. it's giving emergency exit but make it β¨data structuresβ¨.
π HISTORY π
zt_testfirst appeared in libzt 0.1 β an OG, a legend, a pioneer πzt_tfirst appeared in libzt 0.2 β the sequel that ate, no cap π₯
π AUTHORS π
Zygmunt Krynicki <me@zygoon.pl>
(the genius behind all of this. we stan. π«Ά)
π SEE ALSO π
bestie there's literally nothing here. it's just vibes and an empty SEE ALSO section. we love a mysterious queen π
and that's the whole page!! this was zt_test(3) from libzt 0.3.1, dated January 12, 2020 β yes she's vintage, she's timeless, she's a classic πβ¨
mwah, go write some tests π
π¦ 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