Branch Coverage

blib/lib/File/SortedSeek/PERLANCAR.pm
Criterion Covered Total %
branch 22 78 28.2


line true false branch
53 0 10 if ($descending) { }
60 0 702 $descending ? :
72 0 207 $descending ? :
89 0 0 unless $find =~ /^[\d.]+$/
95 0 0 unless defined $line
99 0 0 if ($line =~ /(\w{3})\s+(\d{1,2})\s+(\d\d):(\d\d):(\d\d)\s+(\d{4})/) { }
0 0 elsif ($line =~ m(\[(\d{1,2})/(\w{3})/(\d{4}):(\d\d):(\d\d):(\d\d))x) { }
0 0 elsif ($line =~ /^(\d+)/) { }
111 0 0 unless ($year)
113 0 0 unless $silent
117 0 0 $not_gmtime ? :
127 0 0 if $begin > $finish
131 0 0 if ($read < $bytes)
133 0 0 unless $silent
138 0 0 wantarray ? :
146 0 0 unless my(@stat) = stat FILE
154 0 0 if $pos < 0
156 0 0 unless sysread FILE, $buf, $blksize
159 0 0 if $lines > $num_lines or $pos == 0
163 0 0 if ($num_lines > @file) { }
165 0 0 unless $silent
166 0 0 wantarray ? :
170 0 0 wantarray ? :
180 0 103 unless defined $key
182 16 87 if (defined $maxoffset) { }
185 0 87 unless my(@stat) = stat FILE
198 0 0 unless seek FILE, $mid * $blksize + $minoffset, 0
199 0 0 if $mid
201 0 0 if $xfrm
203 0 0 defined $_ && &$comp($_, $key) < 0 ? :
207 0 103 unless seek FILE, $min + $minoffset, 0
208 0 103 if $min
212 3 964 unless defined($_ = readline FILE)
213 0 964 if $xfrm
216 97 867 $cmp == 0 ? :
217 91 873 if (not $cuddle and $cmp >= 0)
219 1 90 if ($min + $minoffset > $maxoffset) { }
226 9 864 if ($cuddle and $cmp > 0)
228 1 8 if ($prev_min + $minoffset > $maxoffset) { }