STRUCT GLOB_TEST_CASE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct glob_test_case(9) πŸ’…

okay bestie, welcome to the Kernel API Manual glow-up for struct glob_test_case β€” no cap, it’s literally the test-case struct for glob matching. ✨


πŸ’– NAME πŸ’–

struct glob_test_case β€” Test case for glob matching. That’s the whole assignment, and she ate. πŸ’…


🌸 SYNOPSIS 🌸

here’s the struct exactly as it is, because we do not mess with code, ever 🫢:

       struct glob_test_case {
           const char *pat;
           const char *str;
           bool expected;
        };

πŸŽ€ Members πŸŽ€

okay so these are the members, and they are lowkey the whole personality of this struct:

  • pat β€” Pattern to match. 🧚
  • str β€” String to match against. πŸ¦‹
  • expected β€” Expected glob_match result, true if matched. πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./lib/tests/glob_kunit.c β€” go peek, bestie, it’s right there. πŸ‘€

xoxo bestie πŸ’– β€” sourced from/versioned at ./lib/tests, dated October 2026, and this iconic little page is struct glob_test_case(9) βœ¨πŸŽ€

πŸ“¦ where this page comes from