Fennec...llector(3pm)

πŸ“¦
version 2.018 Β· 2 versions
  • 2.018 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 2.018 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Fennec::Collector β€” the manual page, but make it make sense πŸ’–

okay so bestie, welcome to Fennec::Collector β€” it's a Perl module, it's part of the User Contributed Perl Documentation, and it's literally the group chat moderator between your parent process and all its child processes. 🫢


✨ NAME ✨

Fennec::Collector β€” funnel results from child to parent. that's it, that's the whole job description, and she does it flawlessly. πŸ’…


🌸 DESCRIPTION 🌸

The collector has two jobs and she is NOT multitasking badly, she is multitasking iconically:

  1. In the parent process, she's responsible for gathering all the test results from the child processes.
  2. In the child processes, she's responsible for sending results to the parent process.

so basically she's the one carrying messages across the family dinner table. no cap. ✨


πŸ”₯ METHODS SUBCLASSES MUST OVERRIDE πŸ”₯

like, if you're subclassing and you don't do these, it's giving broken. you MUST override them:

  • $bool = ok( $bool, $description ) β€” Fennec sometimes needs to report the result of an internal check. these checks will pass a boolean true/false value and a description. so yeah, $bool in, $bool out, $description along for the ride. βœ…
  • diag( $msg ) β€” Fennec uses this to report internal diagnostics messages. just take the $msg and do your thing with it. 🩺
  • end_pid β€” called just before a child process exits. it's the goodbye hug. πŸ‘‹
  • collect β€” used by the parent process at an interval to get results from children and display them. parent's like "any updates bestie?" on a timer. πŸ•

πŸŽ€ METHODS SUBCLASSES MAY OVERRIDE πŸŽ€

these ones are optional, you may override them, no pressure, only vibes:

  • new β€” builds the object from params, then calls init. constructor behavior, very main character. πŸ‘‘
  • init β€” called by new. that's the whole note. she just gets called. ✨
  • finish β€” called at the very end of "done_testing()", and no tests should be reported after this. that's the boundary, babes. nothing after finish. periodt. 🚫

πŸ¦‹ METHODS SUBCLASSES MUST BE AWARE OF πŸ¦‹

you don't override these, you just need to know about them. awareness check, you passed: πŸ’œ

  • test_count β€” holds the test count so far. πŸ“ˆ
  • test_failed β€” holds the number of tests failed so far. πŸ’€
  • inc_test_count β€” used to add 1 to the number of tests. one. just one. increment. πŸ”’
  • inc_test_failed β€” used to add 1 to the number of failed tests. also one. sadly. 😭

🌈 AUTHORS 🌈

Chad Granum exodist7@gmail.com β€” yeah, that's the author, credit where it's due, iconic of him honestly. πŸ‘‘


Copyright (C) 2013 Chad Granum

Fennec is free software; Standard perl license (GPL and Artistic).

Fennec is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.

bestie read that part again. no warranty. none. zero. she's free software and she's doing her best. πŸ™ˆ

and that's the whole page, you ate it, you're welcome. πŸ“ this was perl v5.36.0, dated 2022-12-02, and it's the Fennec...llector(3pm) page β€” yeah the title's got the ellipsis in it, that's just how she is, we don't question it. mwah. πŸ’…βœ¨πŸ’–

πŸ“¦ where this page comes from