1Test2::Event::Skip(3) User Contributed Perl DocumentationTest2::Event::Skip(3)
2
3
4
6 Test2::Event::Skip - Skip event type
7
9 Skip events bump test counts just like Test2::Event::Ok events, but
10 they can never fail.
11
13 use Test2::API qw/context/;
14 use Test2::Event::Skip;
15
16 my $ctx = context();
17 my $event = $ctx->skip($name, $reason);
18
19 or:
20
21 my $ctx = context();
22 my $event = $ctx->send_event(
23 'Skip',
24 name => $name,
25 reason => $reason,
26 );
27
29 $reason = $e->reason
30 The original true/false value of whatever was passed into the event
31 (but reduced down to 1 or 0).
32
34 The source code repository for Test2 can be found at
35 http://github.com/Test-More/test-more/.
36
38 Chad Granum <exodist@cpan.org>
39
41 Chad Granum <exodist@cpan.org>
42
44 Copyright 2018 Chad Granum <exodist@cpan.org>.
45
46 This program is free software; you can redistribute it and/or modify it
47 under the same terms as Perl itself.
48
49 See http://www.perl.com/perl/misc/Artistic.html
50
51
52
53perl v5.28.0 2018-08-13 Test2::Event::Skip(3)