Condition Coverage

blib/lib/HTTP/RangeSaver.pm
Criterion Covered Total %
condition 18 29 62.0


and 2 conditions

line l !l condition
106 13 0 $params{'truncate'} && 1
107 12 1 $params{'require_partial'} && 1
108 11 2 $params{'require_length'} && 1
109 12 1 $params{'require_resource'} && 1

and 3 conditions

line !l l&&!r l&&r condition
180 0 7 0 defined $length and $length eq '*'
257 4 1 3 $method ne 'ignore' && $method ne 'indefinite'
410 0 0 3 $ct eq 'multipart/byteranges' and defined($boundary = $params{'boundary'})
465 0 0 9 ($first, $last, $length) = $content_range =~ /$content_range_re/ and $last >= $first
0 9 0 ($first, $last, $length) = $content_range =~ /$content_range_re/ and $last >= $first and $length eq '*' || $last < $length

or 3 conditions

line l !l&&r !l&&!r condition
401 5 0 2 $code == 200 or $code == 203
465 1 8 0 $length eq '*' || $last < $length