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 🌈

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 πŸ’…βœ¨