Test2:...rocess(3pm)
π Test2:...rocess(3pm) π
okay bestie, so this page is Test2:...rocess(3pm), from the User Contributed Perl Documentation crew, and it's literally about a base class for processes that Test2::Harness::IPC runs. it's giving infrastructure. it's giving "i hold the whole thing together and don't even brag about it". let's get into it π«Ά
β¨ NAME β¨
Test2::Harness::IPC::Process β the base class for processes controlled by Test2::Harness::IPC.
πΈ DESCRIPTION πΈ
so the vibe is: every single process that gets controlled by Test2::Harness::IPC? yeah. it should be subclassing this one. no exceptions, no cap. this is the blueprint and everyone else is just building on it π
π ATTRIBUTES π
$int = $proc->exitβ the exit value, but only if it's actually been set. otherwise you getundef, which is the Perl way of saying "idk her yet" π$stamp = $proc->exit_timeβ the timestamp of when the process peaced out, if it's been set. otherwiseundef. same deal π$pid = $proc->pidβ the pid of the process, and this one's only there if the process has actually been started. no process, no pid, sorry bestie π$cat = $proc->categoryβ this gets set at construction time. and if you didn't bother providing one? it just defaults to'default'like the chill icon it is β¨
π METHODS π
$opt->set_pid($pid)β sets the process id. boom. done. next β¨$opt->set_exit($ipc, $exit, $time)β marks the process as complete, like officially wrapped.$exitshould be the exit value, and$timeshould be a timestamp. meanwhile$ipcis an instance ofTest2::Harness::IPC. all three, together, doing their little thing π«Ά$hashref = $opt->spawn_params()β this gets used when the process is being spawned, and its args go torun_cmd()fromTest2::Harness::Util::IPC.
β οΈ bestie listen β the base class throws an exception if this method is called. like, this specific one. on this specific class. so don't call it here, okay? subclass it first, then we talk π
π¦ SOURCE π¦
the source code repository for Test2-Harness lives at http://github.com/Test-More/Test2-Harness/ β go poke around, it's iconic π
π MAINTAINERS π
Chad Granum <exodist@cpan.org>
π AUTHORS π
Chad Granum <exodist@cpan.org>
β COPYRIGHT β
Copyright 2020 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/
okay that's the whole page, you ate that π and for the cute little sign-off at the bottom: this one came from perl v5.40.1, dated 2026-05-10, and it's Test2:...rocess(3pm) β so jot that down, periodt π
π¦ where this page comes from
- ubuntu stonking: libtest2-harness-perl 1.000172-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