Condition Coverage

blib/lib/HTTP/Proxy.pm
Criterion Covered Total %
condition 37 59 62.7


and 3 conditions

line !l l&&!r l&&r condition
223 0 68 13 $self->max_connections and $self->conn >= $self->max_connections
381 0 74 1 not defined $self->response and $req->method eq 'CONNECT'
484 1 75 0 defined $req->uri->scheme and $req->uri->scheme =~ /^(?:ftp|gopher)$/
76 0 0 defined $req->uri->scheme and $req->uri->scheme =~ /^(?:ftp|gopher)$/ and $response->is_success
492 6 9 0 not $last and $served < $self->max_keep_alive_requests
523 5 66 4 $response->request and $response->request->method eq 'HEAD'
688 0 0 30 defined $mime and $mime ne ''
717 1 29 0 ref $filter and $filter->isa('HTTP::Proxy::HeaderFilter') || $filter->isa('HTTP::Proxy::BodyFilter')
733 0 18 0 defined $mime and not +($self->response->content_type || '') =~ /$mime/
758 8 0 0 $scheme eq $_ and ++$ok

or 2 conditions

line l !l condition
138 214 0 exists $METHODS{$_} or carp("Method group $_ doesn't exist")
707 2 25 $host ||= '.*'
708 0 27 $path ||= '.*'
709 0 27 $query ||= '.*'
733 18 0 $self->response->content_type || ''
736 18 0 $$self{'request'}->method || ''
737 18 0 $$self{'request'}->uri->scheme || ''
738 15 3 $$self{'request'}->uri->authority || ''
739 18 0 $$self{'request'}->uri->path || ''
740 0 18 $$self{'request'}->uri->query || ''

or 3 conditions

line l !l&&r !l&&!r condition
489 6 9 61 $last or $served >= $self->max_keep_alive_requests
717 10 19 0 $filter->isa('HTTP::Proxy::HeaderFilter') || $filter->isa('HTTP::Proxy::BodyFilter')
768 19 1 681 $self->logmask & $level or $level == -1