Condition Coverage

blib/lib/AnyEvent/MultiDownload.pm
Criterion Covered Total %
condition 23 45 51.1


and 3 conditions

line !l l&&!r l&&r condition
178 1 0 0 $$hdr{'content-length'} <= $self->block_size and $$first_task{'size'} == $$hdr{'content-length'}
196 3 0 1 $$hdr{'OrigStatus'} and $$hdr{'OrigStatus'} == 200
198 1 1 1 $status == 500 || $status == 503 || $status =~ /^59/ and $retry < $self->max_retries

or 2 conditions

line l !l condition
160 0 1 $$first_task{'block'} || 0
161 0 1 $$first_task{'ofs'} || 0
254 0 7 $retry ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
151 0 0 1 not defined $len or $len <= 0
178 0 1 0 $$hdr{'content-length'} <= $self->block_size and $$first_task{'size'} == $$hdr{'content-length'} or $$first_task{'size'} >= $self->block_size
196 1 0 3 $$hdr{'OrigStatus'} and $$hdr{'OrigStatus'} == 200 or $$hdr{'Status'} == 200
1 0 3 $$hdr{'OrigStatus'} and $$hdr{'OrigStatus'} == 200 or $$hdr{'Status'} == 200 or $$hdr{'Status'} == 416
198 0 2 1 $status == 500 || $status == 503 || $status =~ /^59/
228 7 1 1 $$hdr{'Status'} == 206 or $$hdr{'Status'} == 200
242 0 8 0 $$task{'ctx'} ||= 'AnyEvent::Digest'->new($self->digest)
276 0 7 0 $status == 200 or $status == 206
278 0 0 7 $$task{'size'} != $$task{'tail'} - $$task{'ofs'} + 1 or not $self->on_block_finish->($hdl, $task, $self->digest ? $$task{'ctx'}->hexdigest : '')
303 0 0 0 not $status =~ /^(59.|503|500|502|200|206|)$/ or $retry > $self->max_retries