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         2  
  25         547  
3 25     25   51 use warnings;
  25         25  
  25         1025  
4              
5             our $VERSION = '0.000013';
6              
7 25     25   75 BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
  25         542  
8 25     25   94 use Test2::Util::HashBase qw/error file/;
  25         5  
  25         100  
9              
10             sub init {
11 26     26 0 427 my $self = shift;
12 26 50       201 defined $self->{+ERROR} or $self->trace->throw("'error' is a required attribute");
13 26 50       141 defined $self->{+FILE} or $self->trace->throw("'file' is a required attribute");
14             }
15              
16 2     2 1 250 sub diagnostics { 1 }
17              
18 24     24 1 1967 sub summary { $_[0]->{+ERROR} }
19              
20             1;
21              
22             __END__