Branch Coverage

blib/lib/Test2/Plugin/Cover.pm
Criterion Covered Total %
branch 54 74 72.9


line true false branch
41 1 7 if ($params{'disabled'})
48 0 7 if $params{'no_event'}
50 0 7 if ($IMPORTED++)
51 0 0 if keys %params
58 0 7 if $params{'root'}
59 7 7 if $ran++
64 0 7 unless eval "END { local \$?; \$callback->() }; 1"
69 28 0 -f $_ ? :
96 0 0 $FROM_MODIFIED ? :
102 0 3 unless $file
112 0 6 unless $file
115 2 4 unless "ARRAY" eq ref $subs
131 0 90 $INC{$file} ? :
132 62 28 if $path->exists
134 49 41 unless $root->subsumes($file)
149 4 195 if $file =~ /^\(eval( \d+\)?)$/
152 70 125 if -e $file
157 4 121 if $file =~ /(?:defined|declared) (?:at|in) (.+) at line \d+/
158 5 120 if $file =~ /(?:defined|declared) (?:at|in) (.+) line \d+/
159 57 68 if $file =~ /\(eval \d+\)\[(.+):\d+\]/
160 1 124 if $file =~ /\((.+)\) line \d+/
161 1 124 if $file =~ /\((.+)\) at line \d+/
164 0 125 unless $file
167 57 68 if $file eq $start
174 7 50 if $file =~ /([\[\]\(\)]|->|\beval\b)/
178 47 3 if $file =~ /\S+\.\S+$/i or $file =~ /\Q$SEP\E/
218 0 24 if $HIDDEN_SUBS{$sub}
220 1 23 $SPECIAL_SUBS{$sub} ? :
223 0 24 if ($oval->{$key}) { }
242 3 4 $FROM_MODIFIED ? :
257 7 0 unless $params{'ctx'}
273 0 126 unless $raw
274 26 100 if $FILTER{$raw}
277 7 90 if $FILTER{$file}
280 0 41 if $FILTER{$path}
288 0 47 if ($into->{$sub}) { }
292 47 0 if $from->{$sub}