1Test2::Event::Pass(3) User Contributed Perl DocumentationTest2::Event::Pass(3)
2
3
4
6 Test2::Event::Pass - Event for a simple passing assertion
7
9 This is an optimal representation of a passing assertion.
10
12 use Test2::API qw/context/;
13
14 sub pass {
15 my ($name) = @_;
16 my $ctx = context();
17 $ctx->pass($name);
18 $ctx->release;
19 }
20
22 The source code repository for Test2 can be found at
23 http://github.com/Test-More/test-more/.
24
26 Chad Granum <exodist@cpan.org>
27
29 Chad Granum <exodist@cpan.org>
30
32 Copyright 2020 Chad Granum <exodist@cpan.org>.
33
34 This program is free software; you can redistribute it and/or modify it
35 under the same terms as Perl itself.
36
37 See http://dev.perl.org/licenses/
38
39
40
41perl v5.34.0 2021-09-29 Test2::Event::Pass(3)