Branch Coverage

blib/lib/Test/Subs.pm
Criterion Covered Total %
branch 39 80 48.7


line true false branch
28 3 0 $_[0] ? :
3 7 if @_
34 2 1 unless @_
35 1 0 if (defined $_[0]) { }
36 0 1 if (file_name_is_absolute($_[0])) { }
41 0 1 unless (-d $path_to_lib)
54 2 2 unless @_
55 2 0 if (defined $_[0] and $_[0] =~ /^\s*(\d+)\s*$/) { }
58 0 0 $_[0] ? :
66 5 7 if ($t) { }
7 0 elsif (not defined $t) { }
80 1 18 if ($is_running) { }
0 18 elsif (any sub { /__BAD_MARKER__/; } , @_) { }
94 0 6 if $@
106 5 0 if debug_mode
121 2 0 unless ref $re
125 0 2 if ($@) { }
0 2 elsif (not defined $r) { }
2 0 elsif ($r =~ /$re/) { }
126 0 0 if debug_mode
129 0 0 if debug_mode
134 0 0 if debug_mode
160 0 1 if ($@) { }
0 1 elsif ($r) { }
161 0 0 if debug_mode
164 0 0 if debug_mode
181 1 1 unless ref $re
185 2 0 if ($@ and $@ =~ /$re/) { }
0 0 elsif ($@) { }
188 0 0 if debug_mode
191 0 0 if debug_mode
216 0 1 if ($is_running) { }
243 12 1 $ok ? :
250 1 0 if ($reason) { }
264 2 1 if $debug_mode
267 1 2 @todo ? :
285 2 0 if (-e $f and -r _) { }
287 0 2 if ($@) { }
288 0 0 if debug_mode
310 0 4 if (not $has_run)