SHTK_UNITTEST_EXPECT_FILE(3)
π 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 fromDebian, datedNovember 9, 2014π β yes we're citing the ancient texts. And the whole thing isSHTK_UNITTEST_EXPECT_FILE(3), mwah π
Hope that helped fr fr β now go make those tests slay π β¨π
π¦ where this page comes from
- nixos 26.05: shtk 1.7
- nixpkgs unstable: shtk 1.7
- Copyright 2014 Google Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms