Branch Coverage

blib/lib/Proc/Hevy.pm
Criterion Covered Total %
branch 34 38 89.4


line true false branch
17 6 97 unless @args % 2 == 0
21 6 91 unless defined $args{'command'}
24 70 21 if (ref($args{'command'}) =~ /^(?:CODE)?\z/) { }
6 15 elsif (ref $args{'command'} ne 'ARRAY') { }
31 15 70 if exists $args{'stdin'} and ref $args{'stdin'}
35 59 20 if exists $args{'stdout'}
39 59 14 if exists $args{'stderr'}
43 6 61 if defined $args{'parent'}
47 6 61 if defined $args{'child'}
51 63 4 unless defined $args{'priority'}
60 0 67 unless defined $pid
63 20 47 if ($pid == 0)
67 2 18 if defined $args{'child'}
76 2 18 if ($args{'priority'})
78 0 2 unless defined $priority
83 0 2 unless setpriority 0, $$, $priority
88 18 2 if (ref $args{'command'}[0] eq 'CODE')
102 4 43 if defined $args{'parent'}
127 0 47 if $rc == -1