Branch Coverage

blib/lib/AnyEvent/Process.pm
Criterion Covered Total %
branch 44 70 62.8


line true false branch
65 30 58 if defined $args{$arg}
68 0 11 if (%args)
86 2 158 if defined $args{$arg}
89 0 20 if (%args)
93 6 14 if (defined $proc_args{'on_completion'}) { }
108 4 2 if (--$counter == 0)
114 0 6 if ($err)
132 0 36 if (not ref $handle eq 'GLOB' || $handle =~ /^\d{1,4}$/) { }
32 4 elsif ($$args[0] eq 'pipe') { }
0 4 elsif ($$args[0] eq 'open') { }
4 0 elsif ($$args[0] eq 'decorate') { }
139 16 16 if ($$args[1] eq '>') { }
16 0 elsif ($$args[1] eq '<') { }
0 0 elsif ($$args[1] eq '+>' or $$args[1] eq '+<') { }
149 0 32 unless (defined $my_fh and defined $child_fh)
154 28 4 if (ref $$args[2] eq 'GLOB') { }
4 0 elsif ($$args[2] eq 'handle') { }
162 0 0 unless (defined $fh)
168 0 4 unless (defined $out or ref $out eq 'GLOB')
173 0 4 unless (defined $my_fh and defined $child_fh)
179 2 2 if (defined $decorator and ref $decorator eq '') { }
2 0 elsif (defined $decorator and ref $decorator eq 'CODE') { }
205 0 20 if (not defined $pid) { }
6 14 elsif ($pid == 0) { }
221 0 0 $rtn eq int $rtn ? :
237 2 4 if ('AnyEvent::Handle'->can($$handle[1][$i]) and 'ARRAY' eq ref $$handle[1][$i + 1]) { }
238 0 2 if ($$handle[1][$i] eq 'on_eof') { }
260 4 10 if (defined $proc_args{'on_completion'}) { }
278 1 13 if (defined $proc_args{'kill_interval'})
286 1 13 if (defined $proc_args{'watchdog_interval'} or defined $proc_args{'on_watchdog'})
287 0 1 unless (defined $proc_args{'watchdog_interval'} and defined $proc_args{'on_watchdog'})
294 1 2 unless ($proc_args{'on_watchdog'}($job))
310 0 0 unless defined $$self{'job'}
317 0 0 unless defined $$self{'job'}
324 0 1 unless defined $$self{'job'}