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   2180 use strict;
  27         91  
  27         924  
3 27     27   121 use warnings;
  27         116  
  27         1839  
4              
5             our $VERSION = '0.000012';
6              
7 27     27   144 BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
  27         882  
8 27     27   148 use Test2::Util::HashBase qw/output/;
  27         53  
  27         153  
9              
10             sub init {
11 18     18 0 252 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 1263 sub diagnostics { 1 }
16              
17 14     14 1 4794 sub summary { $_[0]->{+OUTPUT} }
18              
19             1;
20              
21             __END__