Test::...alsObj(3pm)

๐Ÿ“ฆ
version 0.0306 ยท 2 versions
, in fedora 43

๐Ÿ’– 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::Struct
  • Test::Run::Obj
  • Test::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