Branch Coverage

blib/lib/File/GetLineMaxLength.pm
Criterion Covered Total %
branch 14 18 77.7


line true false branch
95 0 111 unless @_ >= 1 and @_ <= 2
134 400 1000170 if @_
141 1000452 8196 if ($FoundLineLen != -1) { }
144 1000264 188 if (not $MaxLength or $FoundLineLen <= $MaxLength) { }
149 188 0 if @_
157 6 8190 if ($MaxLength and length $$Buffer > $MaxLength + length($EOL))
158 6 0 if @_
165 0 8190 unless defined $BytesRead
168 112 8078 if ($BytesRead == 0)