1 package Test2::Event::Pass;
5 our $VERSION = '1.302182';
7 use Test2::EventFacet::Info;
11 our @ISA = qw(Test2::Event);
12 *META_KEY = \&Test2::Util::ExternalMeta::META_KEY;
15 use Test2::Util::HashBase qw{ -name -info };
19 sub summary { "pass" }
20 sub increments_count { 1 }
24 sub subtest_id { undef }
36 $in = {%$in} if ref($in) ne 'ARRAY';
37 $in = Test2::EventFacet::Info->new($in);
39 push @{$self->{+INFO}} => $in;
46 my $out = $self->common_facet_data;
48 $out->{about}->{details} = 'pass';
50 $out->{assert} = {pass => 1, details => $self->{+NAME}};
52 $out->{info} = [map {{ %{$_} }} @{$self->{+INFO}}] if $self->{+INFO};
67 Test2::Event::Pass - Event for a simple passing assertion
71 This is an optimal representation of a passing assertion.
75 use Test2::API qw/context/;
86 The source code repository for Test2 can be found at
87 F<http://github.com/Test-More/test-more/>.
93 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
101 =item Chad Granum E<lt>exodist@cpan.orgE<gt>
107 Copyright 2020 Chad Granum E<lt>exodist@cpan.orgE<gt>.
109 This program is free software; you can redistribute it and/or
110 modify it under the same terms as Perl itself.
112 See F<http://dev.perl.org/licenses/>