Test::S...n::Defer(3)

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

πŸ’– Test::S...n::Defer β€” the manual page, but make it cute πŸ’–

ok so bestie, you found the manual page for Test::S...n::Defer(3) β€” it lives in the User Contributed Perl Documentation section of your friendly neighborhood man setup. Buckle up, it's short but it's important. ✨


🚨 DEPRECATED 🚨

ngl this one's giving "vintage." This distribution is deprecated in favor of Test2, Test2::Suite, and Test2::Workflow. 😭

If you need to move on (and you should, queen), check out Test::Stream::Manual::ToTest2 for a conversion guide. It's literally the glow-up roadmap. πŸ¦‹


🌸 DESCRIPTION 🌸

Okay so this is the plugin form of Test::Stream::DeferredTests. That's it. That's the description. Short and iconic, no notes. πŸ’…


✨ SYNOPSIS ✨

Here's the vibe, copy it exactly bestie:

use strict;
use warnings;

use Test::Stream qw/Core Defer/;

# Declare some more tests to run later:
def ok => (1, "another pass");
...

do_def(); # run the new tests

done_testing;

Not me obsessed with how clean that is. 🫢


πŸŽ€ EXPORTS πŸŽ€

Two things get exported and they are both main characters:

  • def function => @args; β€” this stores the function name plus the arguments so they can be run later. And listen, heads up: each package has its own separate store of tests to run. So don't go thinking they all share one pile, because they do not. πŸ™ˆ
  • do_def() β€” this runs all the stored tests. And it also resets the list back to empty, which is lowkey the best part, because it means you can keep adding more tests to run even later. Infinite slay. ✨

πŸ”— SOURCE πŸ”—

The source code repository for Test::Stream can be found at:

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

Go look, it's right there. πŸ‘‘


πŸ’œ MAINTAINERS πŸ’œ

  • Chad Granum <exodist@cpan.org>

🌈 AUTHORS 🌈

  • Chad Granum <exodist@cpan.org>

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/


fr fr, that's the whole page. every flag, every function, every email, every link β€” all accounted for. nothing skipped, nothing invented. πŸ’―

and that's a wrap bestie πŸŽ€ β€” this page came to you courtesy of perl v5.42.0, dated 2025-07-25. Go write some deferred tests, you gorgeous genius. periodt. πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from