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_test first appeared in libzt 0.1 β€” an OG, a legend, a pioneer 🌟
  • zt_t first 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 πŸ’–