Test2::IPC(3pm)
π NAME
Test2::IPC β okay so this is the module that turns on IPC so you can do threading or forking stuff in your tests. Periodt. β¨
It's part of the Perl Programmers Reference Guide, and honestly? iconic behavior.
β¨ SYNOPSIS β¨
Bestie, the vibes here are simple: you should use Test2::IPC; as early as possible in your test file. That's it. That's the whole move. π«Ά
But like, be aware of the timing, okay? If you import this module after API initialization, it will attempt to retrofit IPC onto the existing hubs. It's giving "showing up late to the group chat and trying to catch up on 400 messages" β it'll try, but just import early and save yourself the drama. π
use Test2::IPC;
π« DISABLING IT
You can use no Test2::IPC; to disable IPC for good. Like, forever-forever. π
You can also use the T2_NO_IPC env var if that's more your vibe. Two ways to slay, pick whichever. π
π EXPORTS π
All exports are optional β nobody's forcing you, bestie, everything here is opt-in. π
cull()β Cull allows you to collect results from other processes or threads on demand. It's the "okay everyone drop your receipts in the chat right now" of the test world. π
π¦ SOURCE
The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. Go lurk, go read the code, it's lowkey fascinating. π₯
π MAINTAINERS
Chad Granum <exodist@cpan.org>
πΈ AUTHORS
Chad Granum <exodist@cpan.org>
π 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. (Yes, that's the real deal, no cap β same terms as Perl itself, fr fr.)
See <https://dev.perl.org/licenses/>
π‘ Tiny reminder that the license link above is the actual legal situation β I'm just here hyping it up, not changing it. π
β And that's the whole page, bestie! This one came to you from perl v5.42.3, dated 2026-11-03 β mark your calendars, screenshot the footer, and go turn on that IPC. Love that for you. π§ππ
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms