Test::S...Subtest(3)

πŸ“¦
version 1.302027 Β· 2 versions
, in fedora 43

πŸ’– Test::Stream::Event::Subtest πŸ’–

okay bestie, welcome to the Test::Stream::Event::Subtest page β€” it's part of the User Contributed Perl Documentation and honestly it's a short one, so grab a boba and let's go πŸ§‹βœ¨


🌸 NAME 🌸

Test::Stream::Event::Subtest β€” it's the event for subtest types, periodt πŸ’…


πŸ’€ DEPRECATED πŸ’€

ok so major heads up bestie, this whole distribution is deprecated 😭 it's been retired in favor of Test2, Test2::Suite, and Test2::Workflow.

and if you're sitting there like "okay but how do I move my stuff over" β€” there's literally a whole conversion guide waiting for you: Test::Stream::Manual::ToTest2. go read it, iykyk πŸ¦‹

not me still shipping code against a deprecated dist... anyway. migrate, bestie. πŸ™ˆ

✨ DESCRIPTION ✨

So this class? It represents a subtest πŸŽ€ that's its whole thing.

And the family tree: this class is a subclass of Test::Stream::Event::Ok. so everything Ok can do, this one inherits. iconic lineage fr fr πŸ‘‘


πŸ”₯ ACCESSORS πŸ”₯

Quick note before we dive in: this class inherits from Test::Stream::Event::Ok, so all of that class's accessors are also yours to use πŸ’–

Here's what's special about this one:

  • $arrayref = $e->subevents β€” gives you back the arrayref holding all the events from the subtest. every single one, all cozied up in one list 🌈
  • $bool = $e->buffered β€” returns true if the subtest is buffered, which means all the subevents render all at once. and if it's false? then it means all the subevents render as they are produced β€” one at a time, live, as they happen ✨

πŸ“š SOURCE πŸ“š

the source code repo for Test::Stream lives right here:

http://github.com/Test-More/Test-Stream/

go peek, go star it, go read the code bestie πŸ‘€β­


πŸ‘‘ MAINTAINERS πŸ‘‘

  • Chad Granum <exodist@cpan.org>

🫢 AUTHORS 🫢

  • Chad Granum <exodist@cpan.org>

(yes bestie, same person, same icon energy πŸ’…)


Copyright 2015 Chad Granum <exodist7@gmail.com>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See:

http://dev.perl.org/licenses/

and that's the whole page, bestie, we ate that up πŸ“πŸ§š

signing off with perl v5.42.0 dated 2025-07-25 β€” stay slaying, and may all your subtests be buffered exactly the way you want them πŸ’œβœ¨

πŸ“¦ where this page comes from