Branch Coverage

blib/lib/HTTP/Range.pm
Criterion Covered Total %
branch 28 34 82.3


line true false branch
68 4 4 if ($args{'seg_extras'})
89 3 0 wantarray ? :
119 1 2 if ($_[1]{'length'}) { }
132 1 38 unless isa($res, 'HTTP::Response')
133 1 37 unless &HTTP::Status::is_success($res->code)
134 1 36 if @{[$res->parts];}
135 1 35 unless length $res->content == $res->content_length
157 0 18 unless (defined sysseek($content, $start, 0))
160 0 18 if (syswrite($content, $res->content, $res->header('Content-Length'), 0) != $len)
169 3 2 if (defined $args{'length'})
170 1 2 if ($args{'length'} != length ${$content->string_ref;})
180 0 2 if $DEBUG
181 0 2 if $DEBUG
188 0 2 if $DEBUG
189 1 1 if $len_set
201 3 7 unless (defined $last_span)
206 1 6 if $last_span->intersection($span)