ENUM KUNIT_ASSERT_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum kunit_assert_type(9) πŸ’…

okay so this is straight out of the Kernel API Manual bestie, and it's honestly a tiny little guy β€” but it's doing so much emotional labor, you have no idea 🫢

✨ NAME ✨

enum kunit_assert_type β€” the whole entire vibe of an expectation/assertion, like, what kind of test energy are we bringing today πŸ’«

🌸 SYNOPSIS 🌸

enum kunit_assert_type {
    KUNIT_ASSERTION ,
    KUNIT_EXPECTATION

};

like yes that's it, that's the whole thing, she's small but she's mighty ✨

πŸŽ€ Constants πŸŽ€

  • KUNIT_ASSERTION β€” bestie this one's for when you mean business. It's used to denote that a kunit_assert represents an assertion. no cap, no takebacks πŸ’…
  • KUNIT_EXPECTATION β€” and this one denotes that a kunit_assert represents an expectation. softer energy, still iconic πŸ¦‹

πŸ’– Description πŸ’–

so the way this works: you use this little enum together with a struct kunit_assert to say whether the thing you're looking at represents an expectation or an assertion. that's it. that's the whole personality. it's giving "label on the label" and honestly? she ate πŸ‘‘

🌈 SEE ALSO 🌈

  • Kernel file ./include/kunit/assert.h πŸ”₯
  • struct kunit_loc(9)
  • struct kunit_assert(9)
  • struct kunit_fail_assert(9)
  • struct kunit_unary_assert(9)
  • struct kunit_ptr_not_err_assert(9)
  • struct kunit_binary_assert_text(9)
  • struct kunit_binary_assert(9)
  • struct kunit_binary_ptr_assert(9)
  • struct kunit_binary_str_assert(9)
  • struct kunit_mem_assert(9)

okay that's the page!! mwah πŸ’‹ this one lives in ./include/kunit, it's the October 2026 edition, and it's literally titled enum kunit_assert_type(9) in case you forgot β€” iykyk πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from