ENUM KUNIT_ASSERT_TYPE(9)
π 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 akunit_assertrepresents an assertion. no cap, no takebacks πKUNIT_EXPECTATIONβ and this one denotes that akunit_assertrepresents 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms