Condition Coverage

blib/lib/App/HTTP_Proxy_IMP/IMP.pm
Criterion Covered Total %
condition 0 127 0.0


and 3 conditions

line !l l&&!r l&&r condition
61 0 0 0 $factory->get_interface($interface) && $factory->set_interface($interface)
150 0 0 0 not defined $clen and $xhdr->{'method'} ne 'CONNECT'
237 0 0 0 $met ne 'CONNECT' && !($xhdr->{'url'} =~ m[^internal://]i) && $url =~ s[^internal://][]i
428 0 0 0 $pass and defined $orig_clen
0 0 0 $pass and defined $orig_clen and $pass == -1 || $pass >= $orig_clen + $orig_hlen
486 0 0 0 $self->{'eof'}[$dir] && !defined($self->{'ibuf'}[$dir][0][2]) && ($self->{'prepass'}[$dir] == -1 || $self->{'pass'}[$dir] == -1)
518 0 0 0 $self->{'eof'}[$dir] && !defined($self->{'ibuf'}[$dir][0][2])
742 0 0 0 $relay and my $fo = $relay->fd($dir)
894 0 0 0 $offset and $offset > $eobuf
898 0 0 0 $type < 0 and $type == $ibuf->[-1][2]
0 0 0 $type < 0 and $type == $ibuf->[-1][2] and $callback == $ibuf->[-1][3]
1026 0 0 0 ($magic & 15) == 8 and $magic >> 4 <= 7
0 0 0 ($magic & 15) == 8 and $magic >> 4 <= 7 and unpack('n', substr($buf, 0, 2)) % 31 == 0
1062 0 0 0 $gzip_csum and length $buf >= $gzip_csum

or 2 conditions

line l !l condition
58 0 0 $args // ''
493 0 0 $_->[2] || 'none'
543 0 0 $msg // 'closed by imp'
606 0 0 $fwd{$dir} ||= []
786 0 0 _create_decoder($decode) || (return $self->{'request'}->fatal("cannot decode content-encoding $decode"))

or 3 conditions

line l !l&&r !l&&!r condition
162 0 0 0 $pass == -1 or $pass >= $hlen + $clen
168 0 0 0 $prepass == -1 or $prepass >= $hlen + $clen
292 0 0 0 $data ne '' or $eof
362 0 0 0 $CODE_WITHOUT_RPBODY{$xhdr->{'code'}} or $xhdr->{'code'} < 200
387 0 0 0 $pass == -1 or $pass >= $rpsize
394 0 0 0 $prepass == -1 or $prepass >= $rpsize
428 0 0 0 $pass == -1 || $pass >= $orig_clen + $orig_hlen
470 0 0 0 $data ne '' or $eof
519 0 0 0 $data ne '' or $eof
571 0 0 0 $offset == -1 or $offset > $self->{'ibuf'}[$dir][0][0]
586 0 0 0 $self->{'pass'}[$dir] == -1 or $self->{'prepass'}[$dir] == -1
0 0 0 $offset == -1 or $offset > $self->{'ibuf'}[$dir][0][0]
687 0 0 0 $self->{'pass'}[$dir] or $self->{'prepass'}[$dir]
703 0 0 0 @$ibuf > 1 or $ib0->[2] > 0
817 0 0 0 $encoded_data // $data
820 0 0 0 $offset || $eobuf
835 0 0 0 $encoded_data // $data
861 0 0 0 $encoded_data // $data
865 0 0 0 $offset || $eobuf
872 0 0 0 $encoded_data // $data
900 0 0 0 $offset || $eobuf
909 0 0 0 $offset || $eobuf
948 0 0 0 pos $hdr // 0 != length $hdr
982 0 0 0 $magic != 35615 or $method != Z_DEFLATED()
0 0 0 $magic != 35615 or $method != Z_DEFLATED() or $flags & 224