Test2::Event::Fail(3)

πŸ“¦ version 1.302214, in opensuse-leap 16.0

πŸŽ€ 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 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