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   2594 use strict;
  26         25  
  26         542  
3 26     26   55 use warnings;
  26         26  
  26         1067  
4              
5             our $VERSION = '0.000013';
6              
7 26     26   76 BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
  26         660  
8 26     26   82 use Test2::Util::HashBase qw/file/;
  26         25  
  26         95  
9              
10             sub init {
11 621     621 0 11731 my $self = shift;
12 621 50       1856 defined $self->{+FILE} or $self->trace->throw("'file' is a required attribute");
13             }
14              
15 601     601 1 2375 sub summary { 'Started process with ' . $_[0]->{+FILE} }
16              
17             1;
18              
19             __END__