Branch Coverage

blib/lib/Test/EOF.pm
Criterion Covered Total %
branch 26 54 48.1


line true false branch
31 1 1 ref $_[-1] eq 'HASH' ? :
0 2 ref $_[0] eq 'HASH' ? :
37 0 2 if (exists $options->{'minimum_newlines'} and $options->{'minimum_newlines'} <= 0)
51 2 0 if (not exists $options->{'maximum_newlines'}) { }
0 0 elsif (exists $options->{'maximum_newlines'} and $options->{'maximum_newlines'} < $options->{'minimum_newlines'}) { }
58 0 2 if ($options->{'strict'})
65 0 2 unless my $reader = 'File::ReadBackwards'->new($file)
71 4 0 if $line =~ /\v$/
72 2 2 if $line =~ /^\v$/
76 0 2 if ($linecount < $options->{'minimum_newlines'}) { }
0 2 elsif ($linecount > $options->{'maximum_newlines'}) { }
93 0 0 if $options->{'minimum_newlines'} == $options->{'maximum_newlines'}
98 2 0 @_ ? :
102 0 4 if $File::Find::dir =~ m[ [\\/]? (?:CVS|\.svn) [\\/] ]x
103 0 4 if $File::Find::dir =~ m[ [\\/]? blib [\\/] (?: libdoc | man\d) $ ]x
104 0 4 if $File::Find::dir =~ m[ [\\/]? inc ]x
105 0 4 if $File::Find::name =~ / Build $ /xi
106 2 2 unless -f -r $File::Find::name
116 0 2 unless _is_perl($_)
125 1 1 if $file =~ /\.pm$/i
126 0 1 if $file =~ /::/
129 0 1 if $file =~ /\.pl/i
130 1 0 if $file =~ /\.t$/
132 0 0 unless open my $fh, '<', $file
134 0 0 if (defined $first and $first =~ /$perlstart/)
145 2 0 unless $file =~ /::/
152 0 0 unless -e -f -r $candidate