Test::...TotObj(3pm)

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

πŸ’– Test::...TotObj(3pm) πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation and it's called Test::...TotObj β€” yes the manual name literally has three dots in it, we love a mysterious queen ✨


🌸 NAME 🌸

Test::Run::Obj::TotObj β€” the totals that got encountered for the entire Test::Run session. like, the whole run. every single one. no cap. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

It inherits from Test::Run::Base::Struct. that's the whole vibe. it's a struct, it's a totals object, it's doing its thing 🫢


✨ METHODS ✨

πŸŽ€ BUILD

For Moose. that's it, that's the whole description, it's giving minimalism πŸ’–

πŸ’… $self->add($field, $diff)

Adds the difference $diff to the slot $field, assuming it is a counter field. so like, counter field only bestie, don't try this on a non-counter, that's not the assignment 😭

⭐ $self->inc($field)

Increments the field $field by 1. one. uno. a single unit of increase. iconic. πŸ‘‘

🌈 $self->bench_timestr()

Retrieves the timestr() "nop" according to Benchmark.pm of the bench() field. iykyk 🧚

πŸ”₯ $self->all_ok()

Returns a boolean value β€” 0 or 1 if all tests were OK. zero means not okay, one means slay, that's just how booleans work πŸ’€

πŸ™ˆ $self->fail_test_scripts_string()

Internal use. 🫣 not for you, bestie, it's giving private

πŸ’œ $self->add_results($results)

Adds the sums from a results object. sums! plural! from $results! math is happening! πŸ“

🌸 $self->get_sub_skipped_msg()

Calculates the sub-skipped message ("X subtest/s"). yes, exactly like that, with the slash-s, verbatim, don't @ me 😌

✨ $self->get_bonusmsg()

Internal use. 🫣 again. we're in the private zone

πŸŽ€ $self->get_sub_percent_msg()

Internal use. 🫣 percentages, but make it private

πŸ’– $self->good_percent_msg()

Internal use. 🫣 good vibes only, and also only internally

⭐ $self->fail_tests_good_percent_string()

Internal use. 🫣 (the name is lowkey a contradiction and honestly? we respect it)

πŸ¦‹ $self->benchmark_callback(\&callback)

Benchmarks the callback &callback using the Benchmark module and puts the result in the bench() slot. so you hand it a coderef, it times it, the number goes in the slot. periodt. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

  • Test::Run::Base::Struct
  • Test::Run::Obj
  • Test::Run::Core

go read those too, bestie, they're the rest of the friend group 🫢


πŸ“œ LICENSE πŸ“œ

This file is freely distributable under the MIT X11 license.

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


πŸ’Œ AUTHOR πŸ’Œ

Shlomi Fish, <http://www.shlomifish.org/>. shoutout to Shlomi, absolute main character energy 🌟


and that's a wrap!! this page ships with perl v5.42.0 and is dated 2025-07-25 β€” ty for coming to my ted talk, mwah πŸ’‹πŸ’–
πŸ“¦ where this page comes from