File Coverage

blib/lib/Test2/Event/UnexpectedProcessExit.pm
Criterion Covered Total %
statement 16 16 100.0
branch 2 4 50.0
condition n/a
subroutine 7 7 100.0
pod 2 3 66.6
total 27 30 90.0


line stmt bran cond sub pod time code
1             package Test2::Event::UnexpectedProcessExit;
2 25     25   75 use strict;
  25         25  
  25         500  
3 25     25   75 use warnings;
  25         25  
  25         1012  
4              
5             our $VERSION = '0.000012';
6              
7 25     25   75 BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
  25         472  
8 25     25   97 use Test2::Util::HashBase qw/error file/;
  25         5  
  25         103  
9              
10             sub init {
11 26     26 0 380 my $self = shift;
12 26 50       204 defined $self->{+ERROR} or $self->trace->throw("'error' is a required attribute");
13 26 50       140 defined $self->{+FILE} or $self->trace->throw("'file' is a required attribute");
14             }
15              
16 2     2 1 212 sub diagnostics { 1 }
17              
18 24     24 1 2266 sub summary { $_[0]->{+ERROR} }
19              
20             1;
21              
22             __END__