File Coverage

blib/lib/Test2/Event/UnknownStderr.pm
Criterion Covered Total %
statement 15 15 100.0
branch 1 2 50.0
condition n/a
subroutine 7 7 100.0
pod 2 3 66.6
total 25 27 92.5


line stmt bran cond sub pod time code
1             package Test2::Event::UnknownStderr;
2 27     27   2160 use strict;
  27         50  
  27         634  
3 27     27   83 use warnings;
  27         28  
  27         1120  
4              
5             our $VERSION = '0.000013';
6              
7 27     27   249 BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
  27         588  
8 27     27   69 use Test2::Util::HashBase qw/output/;
  27         32  
  27         130  
9              
10             sub init {
11 18     18 0 187 my $self = shift;
12 18 50       72 defined $self->{+OUTPUT} or $self->trace->throw("'output' is a required attribute");
13             }
14              
15 14     14 1 1216 sub diagnostics { 1 }
16              
17 14     14 1 4545 sub summary { $_[0]->{+OUTPUT} }
18              
19             1;
20              
21             __END__