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   395 use strict;
  27         27  
  27         568  
3 27     27   82 use warnings;
  27         26  
  27         1141  
4              
5             our $VERSION = '0.000013';
6              
7 27     27   81 BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
  27         501  
8 27     27   89 use Test2::Util::HashBase qw/output/;
  27         6  
  27         130  
9              
10             sub init {
11 6     6 0 56 my $self = shift;
12 6 50       34 defined $self->{+OUTPUT} or $self->trace->throw("'output' is a required attribute");
13             }
14              
15 2     2 1 601 sub summary { $_[0]->{+OUTPUT} }
16              
17             1;
18              
19             __END__