Branch Coverage

blib/lib/App/Licensecheck.pm
Criterion Covered Total %
branch 33 50 66.0


line true false branch
161 10 7 if ($top_lines == 0) { }
176 6 1 if ($offset and not $copyrights and $license eq "UNKNOWN")
196 20 26 if ($top_lines == 0) { }
14 12 elsif (not defined $license && defined $copyrights) { }
12 0 elsif ($offset) { }
197 10 10 if defined $content
200 10 0 if (not defined $encoding) { }
209 0 10 if $log->is_trace
215 7 7 if defined $content
220 7 0 if (not defined $encoding) { }
231 7 70 if $fh->input_line_number > $top_lines
234 7 0 if $log->is_trace
237 7 0 if ($end_bytes)
240 1 6 if ($position >= $filesize - $end_bytes) { }
6 0 elsif ($position > 0) { }
0 0 elsif ($position < 0) { }
241 1 0 if ($position < $filesize) { }
0 0 elsif ($position = $filesize) { }
277 6 6 if defined $tail_content
283 6 0 if $log->is_trace
297 0 23 unless local $_ = $content
303 13 10 if (@matches >= 4)
309 0 23 if (@wordmatches >= 4)
337 0 23 unless local $_ = $self->content
355 0 23 unless local $_ = $self->content