File Coverage

blib/lib/Test2/Event/ProcessStart.pm
Criterion Covered Total %
statement 14 14 100.0
branch 1 2 50.0
condition n/a
subroutine 6 6 100.0
pod 1 2 50.0
total 22 24 91.6


line stmt bran cond sub pod time code
1             package Test2::Event::ProcessStart;
2 26     26   2591 use strict;
  26         28  
  26         536  
3 26     26   80 use warnings;
  26         26  
  26         1080  
4              
5             our $VERSION = '0.000012';
6              
7 26     26   101 BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
  26         470  
8 26     26   162 use Test2::Util::HashBase qw/file/;
  26         47  
  26         115  
9              
10             sub init {
11 621     621 0 14510 my $self = shift;
12 621 50       2304 defined $self->{+FILE} or $self->trace->throw("'file' is a required attribute");
13             }
14              
15 601     601 1 3821 sub summary { 'Started process with ' . $_[0]->{+FILE} }
16              
17             1;
18              
19             __END__