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 π
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