File Coverage

blib/lib/Test2/Event/ProcessFinish.pm
Criterion Covered Total %
statement 15 15 100.0
branch 2 4 50.0
condition n/a
subroutine 6 6 100.0
pod 1 2 50.0
total 24 27 88.8


line stmt bran cond sub pod time code
1             package Test2::Event::ProcessFinish;
2 25     25   386 use strict;
  25         25  
  25         524  
3 25     25   59 use warnings;
  25         25  
  25         1090  
4              
5             our $VERSION = '0.000012';
6              
7 25     25   74 BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
  25         878  
8 25     25   96 use Test2::Util::HashBase qw/file result/;
  25         25  
  25         102  
9              
10             sub init {
11 611     611 0 12921 my $self = shift;
12 611 50       2398 defined $self->{+RESULT} or $self->trace->throw("'result' is a required attribute");
13             }
14              
15             sub summary {
16 601     601 1 792 my $self = shift;
17 601 50       3039 return $self->{+FILE} . ' ' . ($self->{+RESULT}->passed ? 'passed' : 'failed');
18             }
19              
20             1;
21              
22             __END__