ZT_TEST_SUITE_FUNC(3)

πŸ’– zt_test_suite_func πŸ’–

okay so bestie, welcome to the LOCAL manual, section 3 β€” this one's about zt_test_suite_func(3) and it's lowkey iconic. let's get into it ✨


✨ NAME ✨

zt_test_suite_func β€” the type of pointer to a test suite function 🫢


🌸 SYNOPSIS 🌸

typedef void
(*zt_test_suite_func)(zt_visitor);

πŸ¦‹ DESCRIPTION πŸ¦‹

so zt_test_suite_func is a pointer to a function that implements a test suite. and what does a test suite do? it groups up any number of test cases and other test suites. it's giving friend group energy fr fr πŸ’…

a single test suite β€” the one you pass as an argument to zt_main() β€” is what gets used to enumerate and discover all the tests in a given test program. that's the whole vibe. one suite to find them all πŸ‘‘


πŸŽ€ IMPLEMENTATION NOTES πŸŽ€

the zt_visitor argument? yeah, that's what implements the whole test case and test suite enumeration system. it's the main character of the mechanism, no cap 🧚


🌈 SEE ALSO 🌈

go read those too bestie, they're part of the lore πŸ’œ


⭐ HISTORY ⭐

zt_test_suite_func first appeared in libzt 0.1 β€” a true OG 🌸


πŸ‘‘ AUTHORS πŸ‘‘

Zygmunt Krynicki <me@zygoon.pl> β€” ty for your service πŸ«‘πŸ’–


and that's the whole page bestie! mwah πŸ’‹

libzt 0.3.1 Β· January 12, 2020 Β· zt_test_suite_func(3) β€” ok bye, ily, go write some tests πŸ’…βœ¨πŸ¦‹