TEST2::EVENT::SKIP(3pm)

πŸ’… NAME πŸ’…

ok so this is Test2::Event::Skip(3pm) from the Perl Programmers Reference Guide, and it's literally the skip event type?? like that's the whole name, bestie. Test2::Event::Skip β€” the skip event type. periodt. πŸŽ€


✨ DESCRIPTION ✨

okay so here's the tea: skip events bump test counts just like Test2::Event::Ok events do β€” same energy, same counting behaviour, no cap. but they can never fail. like ever. built different. πŸ’…

so if you were worried a skip might flop... it can't. that's not in its vocabulary. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

ok so you got two ways to do this and honestly both ate. option one, the cute shortcut: 🌸

use Test2::API qw/context/;
use Test2::Event::Skip;

my $ctx = context();
my $event = $ctx->skip($name, $reason);

or, if you're feeling main character and want to spell it all out: ⭐

my $ctx   = context();
my $event = $ctx->send_event(
    'Skip',
    name   => $name,
    reason => $reason,
);

same vibe, different drip. iykyk. 🫢


πŸ”₯ ACCESSORS πŸ”₯

  • $reason = $e->reason β€” this gives you the original true/false value of whatever got passed into the event. and yes, it's reduced down to 1 or 0 β€” so don't come looking for nuance in here, it's giving binary icon energy. πŸ’€

🌈 SOURCE 🌈

the source code repository for Test2 lives right here, and it's literally iconic:

<https://github.com/Test-More/test-more/>

go look, bestie, the code is right there. πŸ¦‹


πŸ‘‘ MAINTAINERS πŸ‘‘

Chad Granum <exodist@cpan.org>


🌸 AUTHORS 🌸

Chad Granum <exodist@cpan.org>


Copyright Chad Granum <exodist@cpan.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <https://dev.perl.org/licenses/>


🧚 and that's the whole page, no notes!! every flag, every value, every vibe, all of it present and accounted for. slay. πŸ’œ

ok bye bestie β€” this was Test2::Event::Skip(3pm) from perl v5.42.3, dated 2026-11-03. mwah. πŸ“

πŸ“¦ where this page comes from