Branch Coverage

blib/lib/App/Ack/File.pm
Criterion Covered Total %
branch 0 36 0.0


line true false branch
37 0 0 if ($self->{'filename'} eq "-")
81 0 0 unless ($self->{'fh'})
82 0 0 if (CORE::open $self->{'fh'}, '<', $self->{'filename'}) { }
109 0 0 if ($regex and $self->open and -f $self->{'fh'})
113 0 0 if (not defined $rc) { }
114 0 0 if ($App::Ack::report_bad_filenames)
122 0 0 if ($rc == $size or index($buffer, "\r") >= 0) { }
126 0 0 unless ($buffer =~ /$regex/o)
148 0 0 if (defined $self->{'fh'})
149 0 0 unless -f $self->{'fh'}
151 0 0 if (not seek($self->{'fh'}, 0, 0) and $App::Ack::report_bad_filenames)
169 0 0 if ($self->{'fh'})
170 0 0 if (not CORE::close $self->{'fh'} and $App::Ack::report_bad_filenames)
203 0 0 unless (exists $self->{'firstliney'})
205 0 0 if (not $fh) { }
206 0 0 if ($App::Ack::report_bad_filenames)
214 0 0 if ($rc) { }
218 0 0 unless (defined $rc)