Test::Run::Base(3pm)

πŸ“¦
version 0.0306 Β· 2 versions
, in fedora 43

πŸ’– NAME πŸ’–

ok so bestie, gather round β€” this is Test::Run::Base, the base class for literally all of Test::Run. she's the mom of the whole family tree 🫢


✨ DESCRIPTION ✨

so like, Test::Run::Base is the base class for every single Test::Run class out there. no cap. she inherits from Class::Accessor and then, because she's an overachiever, she brings some extra goodies of her own to the party πŸŽ€


🌸 METHODS 🌸

$package->new({%args})

this is the default constructor, the main character, the icon πŸ‘‘

do NOT over-ride it. periodt. if you want custom setup, define a BUILD() method instead, okay? that's the whole vibe. do not touch the constructor, she's booked and busy πŸ’…

$dest->copy_from($source, [@fields])

this one assigns the fields @fields using their accessors, pulling the values straight out of $source. so like, $dest copies the fit from $source, slay ✨

$self->accum_array({ method => $method_name })

this is a more simplistic version of the :CUMULATIVE functionality in Class::Std. the whole point of her existence? making sure you can collect all the members of array refs out of methods defined in each class, and pile them into one big array ref that you can use later 🌈

it's giving "one big group chat instead of a million DMs", lowkey genius 🧚

$self->_run_sequence(\@params)

runs the sequence of commands specified using "_calc__${calling_sub}__callbacks" while passing @params to each one. and then β€” the payoff β€” she generates a list of all the callbacks' return values πŸ”₯


πŸ‘‘ LICENSE πŸ‘‘

this file is licensed under the MIT X11 License, fr fr:

http://www.opensource.org/licenses/mit-license.php


and that's the whole page bestie, we ate and left zero crumbs πŸ“ this was Test::Run::Base from the User Contributed Perl Documentation, perl v5.42.0, dated 2025-07-25 β€” mwah, take care of her πŸ’œ

πŸ“¦ where this page comes from