1Test2::Event::Ok(3)   User Contributed Perl Documentation  Test2::Event::Ok(3)
2
3
4

NAME

6       Test2::Event::Ok - Ok event type
7

DESCRIPTION

9       Ok events are generated whenever you run a test that produces a result.
10       Examples are "ok()", and "is()".
11

SYNOPSIS

13           use Test2::API qw/context/;
14           use Test2::Event::Ok;
15
16           my $ctx = context();
17           my $event = $ctx->ok($bool, $name, \@diag);
18
19       or:
20
21           my $ctx   = context();
22           my $event = $ctx->send_event(
23               'Ok',
24               pass => $bool,
25               name => $name,
26           );
27

ACCESSORS

29       $rb = $e->pass
30           The original true/false value of whatever was passed into the event
31           (but reduced down to 1 or 0).
32
33       $name = $e->name
34           Name of the test.
35
36       $b = $e->effective_pass
37           This is the true/false value of the test after TODO and similar
38           modifiers are taken into account.
39

SOURCE

41       The source code repository for Test2 can be found at
42       http://github.com/Test-More/test-more/.
43

MAINTAINERS

45       Chad Granum <exodist@cpan.org>
46

AUTHORS

48       Chad Granum <exodist@cpan.org>
49
51       Copyright 2019 Chad Granum <exodist@cpan.org>.
52
53       This program is free software; you can redistribute it and/or modify it
54       under the same terms as Perl itself.
55
56       See http://dev.perl.org/licenses/
57
58
59
60perl v5.30.0                      2019-09-06               Test2::Event::Ok(3)
Impressum