TEST2::EVENT::SUBTEST(3perl)

πŸ’… Test2::Event::Subtest β€” the perl one, bestie

okay so you found your way to Test2::Event::Subtest, and honestly? iconic choice. this is a perl manpage, so grab a snack and let's get into it πŸ“


✨ NAME ✨

Test2::Event::Subtest β€” it's the event class for subtest types. that's the whole vibe. πŸŽ€


🌸 DESCRIPTION 🌸

so this class represents a subtest. that's it, that's the job. πŸ’–

and here's the nepo-baby tea: Test2::Event::Subtest is a subclass of Test2::Event::Ok. meaning it inherits all of Ok's stuff β€” we'll get to that in a sec. πŸ¦‹


πŸ”₯ ACCESSORS πŸ”₯

lowkey important: this class inherits from Test2::Event::Ok. so whatever Ok gives you? you got it here too. family inheritance, slay. πŸ‘‘

here's what's actually on this class:

  • $arrayref = $e->subevents β€” hands you back the arrayref, and that arrayref is holding all the events from the subtest. every single one. no cap. 🫢
  • $bool = $e->buffered β€” returns true if the subtest is buffered, meaning all the subevents render at once, all together, like a little friend group showing up to the party simultaneously. πŸ’œ and if this is false?? then it means every subevent renders as it's produced, one by one, streamed live, main character energy as they walk in. πŸšΆβ™€οΈβœ¨

🌈 SOURCE 🌈

the source code repo for Test2 lives right here, bestie:

https://github.com/Test-More/test-more/

go look, it's giving open source πŸ’–


πŸ’œ MAINTAINERS πŸ’œ

Chad Granum <exodist@cpan.org> β€” holding it down 🫑


⭐ AUTHORS ⭐

Chad Granum <exodist@cpan.org> β€” yeah same person, he's carrying this whole thing fr fr πŸ’…


Copyright Chad Granum <exodist@cpan.org>.

This program is free software β€” you can redistribute it and/or modify it under the same terms as Perl itself. periodt. πŸ’–

and the license lore lives here:

https://dev.perl.org/licenses/


🌸 tiny note: this is perl, so when you're redistributing it, the terms are literally "same terms as Perl itself" β€” that's the whole deal, don't overthink it 🧚

okay that's the page!! it's perl v5.44.0, dated 2026-10-17, and you read the whole thing like a champ πŸ† mwah, go write some subtests bestie πŸ’‹βœ¨πŸŽ€

πŸ“¦ where this page comes from
  • arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms