Test::...::Impl(3pm)
π NAME π
Test::Future::IO::Impl β it's the acceptance-test glow-up for your Future::IO implementations, bestie β¨
π¦ SYNOPSIS π¦
use Test::More;
use Test::Future::IO::Impl;
use Future::IO;
use Future::IO::Impl::MyNewImpl;
run_tests 'sleep';
done_testing;
Likeβ¦ that's the whole vibe. Load it, point it at your impl, run the suites, done. π
πΈ DESCRIPTION πΈ
Okay so, this module is basically a whole collection of acceptance tests for implementations of Future::IO. That's it, that's the tea π« β you bring an implementation, it brings the receipts.
π FUNCTIONS π
π run_tests
run_tests @suitenames;
This one runs a whole lil collection of tests against Future::IO. Heads up though: it expects that you (the caller) have already loaded the specific implementation module you wanna test against before you call this function. So like, load first, run second. No cap π
π TEST SUITES π
These are the suite names you're allowed to pass into run_tests, and what each one is clocking in to do:
acceptβ Tests theFuture::IO->acceptmethod. β¨connectβ Tests theFuture::IO->connectmethod. π₯pollβ Since version 0.17. Tests theFuture::IO->pollmethod.recv,recvfromβ Since version 0.15. Tests theFuture::IO->recvandFuture::IO->recvfrommethods.sendβ Since version 0.15. Tests theFuture::IO->sendmethod.sleepβ Tests theFuture::IO->sleepandFuture::IO->alarmmethods.
Why are these two squished into one suite? Because they're super similar, and honestly neither one is long or complicated. Two methods, one suite, efficiency queen π
read,sysreadβ Tests theFuture::IO->sysreadorFuture::IO->sysreadmethod.
These two test suites are literally identical except for the name of the method they invoke. They both exist because of the method rename that happened at Future::IO version 0.17. Twins fr π―
write,syswriteβ Tests theFuture::IO->writeorFuture::IO->syswritemethod.
Same deal, bestie: these two test suites are identical other than the name of the method they invoke, and they exist because of that same method rename at Future::IO version 0.17. π
waitpidβ Tests theFuture::IO->waitpidmethod. π§
π AUTHOR π
Paul Evans <leonerd@leonerd.org.uk> β icon behavior, honestly π
ok that's the whole page, you ate that π
Maintainer queen energy and all that: this doc shipped on 2026-02-21, sitting pretty in the User Contributed Perl Documentation corner of the manual, with perl v5.40.1 holding it down. Love that for us. πβ¨π
π¦ where this page comes from
- ubuntu stonking: libtest-future-io-impl-perl 0.19-1 Β· Artistic-1.0-Perl OR 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