Branch Coverage

blib/lib/Test2/Plugin/Cover.pm
Criterion Covered Total %
branch 53 74 71.6


line true false branch
40 1 7 if ($params{'disabled'})
47 0 7 if $params{'no_event'}
49 0 7 if ($IMPORTED++)
50 0 0 if keys %params
57 0 7 if $params{'root'}
58 7 7 if $ran++
63 0 7 unless eval "END { local \$?; \$callback->() }; 1"
68 28 0 -f $_ ? :
95 0 0 $FROM_MODIFIED ? :
101 0 3 unless $file
111 0 6 unless $file
114 2 4 unless "ARRAY" eq ref $subs
130 0 88 $INC{$file} ? :
131 60 28 if $path->exists
133 49 39 unless $root->subsumes($file)
148 4 193 if $file =~ /^\(eval( \d+\)?)$/
151 68 125 if -e $file
156 4 121 if $file =~ /(?:defined|declared) (?:at|in) (.+) at line \d+/
157 5 120 if $file =~ /(?:defined|declared) (?:at|in) (.+) line \d+/
158 57 68 if $file =~ /\(eval \d+\)\[(.+):\d+\]/
159 1 124 if $file =~ /\((.+)\) line \d+/
160 1 124 if $file =~ /\((.+)\) at line \d+/
163 0 125 unless $file
166 57 68 if $file eq $start
173 7 50 if $file =~ /([\[\]\(\)]|->|\beval\b)/
177 47 3 if $file =~ /\S+\.\S+$/i or $file =~ /\Q$SEP\E/
217 0 22 if $HIDDEN_SUBS{$sub}
219 0 22 $SPECIAL_SUBS{$sub} ? :
222 0 22 if ($oval->{$key}) { }
241 3 4 $FROM_MODIFIED ? :
256 7 0 unless $params{'ctx'}
272 0 124 unless $raw
273 26 98 if $FILTER{$raw}
276 7 88 if $FILTER{$file}
279 0 39 if $FILTER{$path}
287 0 43 if ($into->{$sub}) { }
291 43 0 if $from->{$sub}