Test2::Event::Skip(3)
π NAME π
Test2::Event::Skip(3) is the Skip event type β this is its manual page from the User Contributed Perl Documentation, and yes bestie, it's giving small but iconic. β¨
πΈ DESCRIPTION πΈ
Okay so here's the tea: Skip events bump test counts just like Test2::Event::Ok events, but they can never fail. No cap. π
π¦ SYNOPSIS π¦
Use it like this:
use Test2::API qw/context/;
use Test2::Event::Skip;
my $ctx = context();
my $event = $ctx->skip($name, $reason);
or:
my $ctx = context();
my $event = $ctx->send_event(
'Skip',
name => $name,
reason => $reason,
);
π ACCESSORS π
$reason = $e->reasonβ this hands you the original true/false value of whatever was passed into the event, but it's reduced down to1or0. Lowkey tidy. π§
π₯ SOURCE π₯
The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. Go browse, bestie. π
π MAINTAINERS π
Chad Granum <exodist@cpan.org>
π AUTHORS π
Chad Granum <exodist@cpan.org>
β COPYRIGHT β
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/>
kisses and clean exits π
β perl v5.42.0, dated 2025-07-28, for Test2::Event::Skip(3). π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-Simple 1.302214-bp160.1.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms