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 get undef, 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. otherwise undef. 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. $exit should be the exit value, and $time should be a timestamp. meanwhile $ipc is an instance of Test2::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 to run_cmd() from Test2::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 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