SHTK_UNITTEST_EXPECT_FILE(3)

πŸ“¦ version 1.7, in nixos 26.05, nixpkgs unstable

πŸ’… shtk_unittest_expect_file(3) β€” the chill bestie of assertion functions πŸŽ€

Okay so real talk, this one lives in the Library Functions Manual section, and it's from shtk_import unittest ✨ β€” yes bestie, that's the library you need, manifest it.


🌸 NAME 🌸

shtk_unittest_expect_file β€” a non-fatal check to validate the contents of a file πŸ—‚οΈπŸ’–

Like, it looks at your file and tells you if something's off, but it does not slam the door on your whole test run. It's giving supportive friend, not strict teacher. Periodt.


πŸ¦‹ LIBRARY πŸ¦‹

shtk_import unittest

That's the import, no cap. Drop it in and you're in business πŸ‘‘


✨ SYNOPSIS ✨

shtk_unittest_expect_file name

One argument, name, and that's literally it. Iconic minimalism πŸŽ€


πŸ’… DESCRIPTION πŸ’…

So shtk_unittest_expect_file is the non-fatal counterpart of shtk_unittest_assert_file(3) 😭🫢 β€” like, same energy, way lower stakes.

And here's the thing: the manpage doesn't spill the full tea here, it just says see the documentation of this other function for details β€” so bestie, go read shtk_unittest_assert_file(3) for the actual deets. This one's just the softer sibling that won't derail everything when it's not happy πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯

Go read them, iykyk πŸ“šπŸ’œ


⭐ HISTORY ⭐

shtk_unittest_expect_file first appeared in shtk 1.6 β€” a vintage moment, honestly 🌈


Heads up bestie: this page is from Debian, dated November 9, 2014 πŸ’€ β€” yes we're citing the ancient texts. And the whole thing is SHTK_UNITTEST_EXPECT_FILE(3), mwah πŸ’‹

Hope that helped fr fr β€” now go make those tests slay πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from