Test::...alsObj(3pm)
๐ NAME ๐
Hii bestie, welcome to Test::Run::Straps::StrapsTotalsObj(3pm) โ yes, that's the actual name, no I did not make it up, and yes it ships under User Contributed Perl Documentation. โจ
So what is it? It's an object that represents the totals of the straps class. That's it. That's the whole job. It's the little scoreboard that holds all the numbers for a test run, and honestly? Iconic behaviour. ๐
๐ธ FIELDS ๐ธ
There is genuinely nothing here. The heading exists, the section is real, and the content isโฆ a void. ๐ Empty. Bare. The FIELDS section is giving minimalism, and we respect it.
โจ METHODS โจ
This is where the actual slay happens. Every single one, coming right up:
$self->_calc_passing()
Does the math on whether the test file has passed. That's the whole vibe. ๐งฎ
$self->determine_passing()
Same energy as above โ it calculates whether the test file has passed โ but this one is extra: it caches the answer in the passing() slot so nobody has to redo the work. Efficient queen. ๐
$self->last_detail()
Hands you back the last detail. Simple, direct, no notes. ๐
$self->handle_event({event => $event, enormous_num_cb => sub {...}});
This one updates the state of the details using a brand new TAP::Parser event โ that's $event, bestie. And "enormous_num_cb"? It points to a subroutine reference that acts as the callback for handling enormous numbers. Big numbers, big responsibilities. ๐ฅ
$self->update_skip_reason($detail)
Updates the skip reason according to the detail $detail. Yes, that's the detail doing the updating. She works hard. ๐
$self->get_failed_obj_params
Returns a key value array ref of params โ specifically the params you'd use for initializing the failed-object. Key-value, array ref, failed-object. Got it. ๐ซถ
$self->update_based_on_last_detail()
Checks if the last_detail is OK, and if it is, updates the skip_reason based on it. If it's not OKโฆ well, the original doesn't say, and neither will I, because I don't make stuff up. ๐
$self->in_the_middle()
Checks if the tests are in the middle. Like, some were already seen but the end was not reached. It's giving "we're so back but also not there yet". ๐ฆ
$self->bonus()
The number of TODO tests that unexpectedly passed. Surprise wins only, no cap. ๐
$self->details()
An array holding the details of the individual checks in the test file. All of them. Every little one. ๐
$self->exit()
The exit code of the test script. The final word. The mic drop. ๐ค
$self->filename()
The filename of the test script. You already knew that. ๐
$self->max()
The number of planned tests. Planning is self-care. ๐
$self-ok()
The number of tests that passed. โ
Okay real talk: it is literally written as $self-ok() in the source โ no arrow, no mercy. I'm keeping it character for character because that's the rule, and because I refuse to "fix" someone else's art. ๐ญ
$self->passing()
A boolean value that indicates whether the entire test script is considered a success or not. True or false, bestie. Slay or nay. โญ
$self->seen()
The number of tests that were actually run. Witnessed. Accounted for. ๐
$self->skip()
The number of skipped tests. No shame in a strategic skip. ๐
$self->skip_all()
This field holds the reason why the entire test script was skipped โ in cases when it was. Whole-run skip, whole-run explanation. ๐
$self->skip_reason()
The skip reason for the last skipped test that specified such a reason. (If it didn't specify one, this isn't about that test, iykyk.) ๐ญ
$self->todo()
The number of "Todo" tests that were encountered. ๐
$self->wait()
The wait code of the test script. That's it, that's the whole thing. โ
๐ SEE ALSO ๐
Go give these besties a read too:
Test::Run::Base::StructTest::Run::ObjTest::Run::Core
๐ LICENSE ๐
This file is licensed under the MIT X11 License, which you can read right here:
http://www.opensource.org/licenses/mit-license.php
๐ซถ AUTHOR ๐ซถ
Shlomi Fish, <http://www.shlomifish.org/>. ๐
And that's the whole page, bestie! This masterpiece was served up by perl v5.42.0 and stamped 2025-07-25 โ so go forth, count your totals, and remember: every passing test is a little win. โจ๐๐
๐ฆ 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