Condition Coverage

blib/lib/App/Ack/File.pm
Criterion Covered Total %
condition 3 18 16.6


and 3 conditions

line !l l&&!r l&&r condition
109 0 0 0 $regex and $self->open
0 0 0 $regex and $self->open and -f $self->{'fh'}
151 170 0 0 not seek($self->{'fh'}, 0, 0) and $App::Ack::report_bad_filenames
170 0 0 0 not CORE::close $self->{'fh'} and $App::Ack::report_bad_filenames

or 3 conditions

line l !l&&r !l&&!r condition
66 0 168 2 $self->{'basename'} //= ("File::Spec"->splitpath($self->name))[2]
122 0 0 0 $rc == $size or index($buffer, "\r") >= 0