Branch Coverage

blib/lib/Test2/Plugin/Cover.pm
Criterion Covered Total %
branch 49 68 72.0


line true false branch
40 1 6 if ($params{'disabled'})
47 0 6 if $params{'no_event'}
49 0 6 if ($IMPORTED++)
50 0 0 if keys %params
57 0 6 if $params{'root'}
58 6 6 if $ran++
63 0 6 unless eval "END { local \$?; \$callback->() }; 1"
68 24 0 -f $_ ? :
95 0 0 $FROM_MODIFIED ? :
105 0 68 $INC{$file} ? :
106 58 10 if $path->exists
108 47 21 unless $root->subsumes($file)
123 4 169 if $file =~ /^\(eval( \d+\)?)$/
126 65 104 if -e $file
131 4 100 if $file =~ /(?:defined|declared) (?:at|in) (.+) at line \d+/
132 5 99 if $file =~ /(?:defined|declared) (?:at|in) (.+) line \d+/
133 54 50 if $file =~ /\(eval \d+\)\[(.+):\d+\]/
134 1 103 if $file =~ /\((.+)\) line \d+/
135 1 103 if $file =~ /\((.+)\) at line \d+/
138 0 104 unless $file
141 39 65 if $file eq $start
148 7 32 if $file =~ /([\[\]\(\)]|->|\beval\b)/
152 29 3 if $file =~ /\S+\.\S+$/i or $file =~ /\Q$SEP\E/
192 0 11 if $HIDDEN_SUBS{$sub}
194 0 11 $SPECIAL_SUBS{$sub} ? :
197 0 11 if ($oval->{$key}) { }
216 2 4 $FROM_MODIFIED ? :
231 6 0 unless $params{'ctx'}
247 0 99 unless $raw
248 22 77 if $FILTER{$raw}
251 6 68 if $FILTER{$file}
254 0 21 if $FILTER{$path}
262 0 21 if ($into->{$sub}) { }
266 21 0 if $from->{$sub}