Branch Coverage

blib/lib/Test/EOFNewlines.pm
Criterion Covered Total %
branch 27 50 54.0


line true false branch
33 1 1 ref $_[-1] eq 'HASH' ? :
0 2 ref $_[0] eq 'HASH' ? :
39 0 2 if (exists $$options{'minimum_newlines'} and $$options{'minimum_newlines'} <= 0)
52 1 1 if (exists $$options{'minimum_newlines'} and not exists $$options{'maximum_newlines'})
60 0 2 unless my $reader = 'File::ReadBackwards'->new($file)
66 4 0 if $line =~ /\n$/
67 2 2 if $line =~ /^\n$/
71 0 2 if ($linecount < $$options{'minimum_newlines'}) { }
0 2 elsif ($linecount > $$options{'maximum_newlines'}) { }
85 2 0 @_ ? :
89 0 4 if $File::Find::dir =~ m[ [\\/]? (?:CVS|\.svn) [\\/] ]x
90 0 4 if $File::Find::dir =~ m[ [\\/]? blib [\\/] (?: libdoc | man\d) $ ]x
91 0 4 if $File::Find::dir =~ m[ [\\/]? inc ]x
92 0 4 if $File::Find::name =~ / Build $ /xi
93 2 2 unless -f -r $File::Find::name
103 0 2 unless _is_perl($_)
113 1 1 if $file =~ /\.pm$/i
114 0 1 if $file =~ /::/
117 0 1 if $file =~ /\.pl/i
118 1 0 if $file =~ /\.t$/
120 0 0 unless open my $fh, '<', $file
122 0 0 if (defined $first and $first =~ /$perlstart/)
134 2 0 unless $file =~ /::/
141 0 0 unless -e -f -r $candidate
152 2 0 unless ($test->has_plan)