Test::...TotObj(3pm)
π 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::StructTest::Run::ObjTest::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 withperl v5.42.0and is dated2025-07-25β ty for coming to my ted talk, mwah ππ
π¦ where this page comes from
- fedora 43: perl-Test-Run 0.0306-3.fc43 Β· (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-2.0-only AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms