File Coverage

blib/lib/Test2/Event/UnknownStdout.pm
Criterion Covered Total %
statement 14 14 100.0
branch 1 2 50.0
condition n/a
subroutine 6 6 100.0
pod 1 2 50.0
total 22 24 91.6


line stmt bran cond sub pod time code
1             package Test2::Event::UnknownStdout;
2 27     27   441 use strict;
  27         47  
  27         793  
3 27     27   121 use warnings;
  27         48  
  27         2325  
4              
5             our $VERSION = '0.000012';
6              
7 27     27   145 BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
  27         813  
8 27     27   121 use Test2::Util::HashBase qw/output/;
  27         64  
  27         174  
9              
10             sub init {
11 6     6 0 57 my $self = shift;
12 6 50       32 defined $self->{+OUTPUT} or $self->trace->throw("'output' is a required attribute");
13             }
14              
15 2     2 1 748 sub summary { $_[0]->{+OUTPUT} }
16              
17             1;
18              
19             __END__