Test2::Event::Fail(3)
π NAME π
okay so bestie, this is the User Contributed Perl Documentation page for Test2::Event::Fail(3). It's the event for a simple failed assertion, and yes, it's giving exactly that. No cap. π
π DESCRIPTION π
Think of it as the optimal representation of a failed assertion β literally the ideal little failed-assertion event. That's the whole vibe. β¨
π¦ SYNOPSIS π¦
Here's the code, bestie β copy it exactly, no freestyling:
use Test2::API qw/context/;
sub fail {
my ($name) = @_;
my $ctx = context();
$ctx->fail($name);
$ctx->release;
}
π₯ SOURCE π₯
The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. Go snoop, it's iconic. π«Ά
π MAINTAINERS π
Chad Granum <exodist@cpan.org>β the maintainer, main character energy.
π AUTHORS π
Chad Granum <exodist@cpan.org>β author credits, periodt.
π 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/>.
okay bye bestie π this was perl v5.42.0, dated 2025-07-28, and it's the Test2::Event::Fail(3) manual page. slay. π
π¦ 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