Branch Coverage

blib/lib/Test2/Tools/Process.pm
Criterion Covered Total %
branch 60 80 75.0


line true false branch
53 31 2 if (XXX)
58 2 31 if defined $_[0]
69 2 6 unless defined $status
73 2 6 if (defined $expected and $expected->is_exit and defined $expected->callback) { }
77 0 2 if (exists $proc->{'errno'})
93 8 5 if (@_ == 1 or @_ == 0) { }
102 1 12 if (defined $expected and $expected->is_exec and defined $expected->callback) { }
106 0 1 if (exists $proc->{'errno'})
126 11 6 if (@_ == 1 or @_ == 0) { }
135 17 0 if (defined $expected and $expected->is_system and defined $expected->callback) { }
144 15 2 if ($type eq 'system') { }
147 1 14 if exists $event->{'errno'}
163 0 0 $type eq 'system' ? :
164 0 0 if ($? == -1) { }
0 0 elsif ($? & 127) { }
212 1 70 unless exists $sig->{$name}
229 1 2 unless defined $ret
262 0 41 unless defined $type
268 28 9 if defined $_[0] and not XXX and not XXX
269 5 36 if defined $_[0] and XXX
271 21 20 if (defined $_[0])
273 21 0 if (XXX) { }
285 9 32 if ($type eq 'exit') { }
32 0 elsif ($type =~ /^(exec|system)$/) { }
287 6 3 if (defined $check) { }
289 4 2 unless (XXX)
301 2 0 defined $_ ? :
314 22 10 if (defined $check) { }
316 5 17 if (XXX) { }
4 13 elsif (not XXX) { }
344 8 0 defined $_ ? :
352 18 14 if ($type eq 'system')
357 14 18 $type eq 'exec' ? :
444 2 3 unless defined $status
454 0 3 unless defined $signal
455 2 1 if ($signal =~ /^[A-Z]/i) { }
471 0 1 unless defined $errno
495 92 0 !$ENV{'RETURN_MULTILEVEL_DEBUG'} ? :
501 0 0 [0] eq '-' ? :
0 51 if $canary[0]