Test2::Event::Ok(3)
π okay so, the Ok event page π
Welcome to Test2::Event::Ok(3) β this is a User Contributed Perl Documentation page, and it's literally all about the Ok event type. No cap. π
β¨ NAME β¨
Test2::Event::Ok β Ok event type π
π DESCRIPTION π
Every time you run a test that produces a result, you get an Ok event. Examples include ok() and is(). That's the whole vibe. β¨
π SYNOPSIS π
bestie, here's how you make one with context():
use Test2::API qw/context/;
use Test2::Event::Ok;
my $ctx = context();
my $event = $ctx->ok($bool, $name, \@diag);
Or, if you wanna send the event yourself:
my $ctx = context();
my $event = $ctx->send_event(
'Ok',
pass => $bool,
name => $name,
);
π₯ ACCESSORS π₯
$rb = $e->passβ this is the original true/false value of whatever got passed into the event, but it's reduced down to1or0. π«Ά$name = $e->nameβ the name of the test. π$b = $e->effective_passβ this is the true/false value of the test afterTODOand similar modifiers are taken into account. π
π SOURCE π
The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. Go peek if you're nosy, iykyk. π¦
π 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/> π«Ά
okay bye bestie π β this page comes from perl v5.42.0, dated 2025-07-28, and it's Test2::Event::Ok(3). periodt. π
π¦ 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