Condition Coverage

blib/lib/CPANPLUS/Internals/Source/MetaCPAN/HTTP.pm
Criterion Covered Total %
condition 18 50 36.0


and 3 conditions

line !l l&&!r l&&r condition
271 0 4 0 not $content_out and defined $self->{'content'}
311 4 59 4 $headmode || $chunkmode eq 'entity-header' and $$data =~ /^[\r\n]*$/
382 0 0 0 $chunklength == $chunksize and not $chunk =~ /$CRLF$/
435 0 0 0 defined $newdata and ref $newdata eq 'SCALAR'
592 0 0 0 defined $self->{'headers'}{'Content-Type'} and $self->{'headers'}{'Content-Type'}
626 67 0 8 $headmode == 0 and $chunkmode eq '0'
670 4 0 0 $chars <= 0 and not $!{'EAGAIN'}
719 15 0 8 $chars <= 0 and not $!{'EAGAIN'}

or 2 conditions

line l !l condition
521 0 0 $port || 80

or 3 conditions

line l !l&&r !l&&!r condition
154 0 4 0 $self->{'proxy'} || $host
156 0 4 0 $self->{'proxyport'} || $port
174 0 0 0 $local_addr eq '0.0.0.0' or $local_addr eq '0'
311 63 0 4 $headmode || $chunkmode eq 'entity-header'
330 59 0 4 $headmode or $chunkmode eq 'entity-header'
419 0 0 4 defined $data_callback || defined $callback_func
520 0 0 0 $host || $value
626 8 0 67 $headmode == 0 and $chunkmode eq '0' or $chunkmode eq 'chunk'