Condition Coverage

blib/lib/POE/Component/Server/SimpleHTTP.pm
Criterion Covered Total %
condition 20 105 19.0


and 3 conditions

line !l l&&!r l&&r condition
175 6 0 0 $args{'sslkeycert'} and ref $args{'sslkeycert'} eq 'ARRAY'
6 0 0 $args{'sslkeycert'} and ref $args{'sslkeycert'} eq 'ARRAY' and scalar @{$args{'sslkeycert'};} == 2
254 0 0 0 keys %{$self->_requests;} == 0 and keys %{$self->_connections;} == 0
279 0 0 0 defined $S->{$conn}->wheel and defined $S->{$conn}->wheel->get_input_handle
335 6 0 0 $setuphandler->{'POSTBACK'} and ref $setuphandler->{'POSTBACK'} eq 'POE::Session::AnonEvent'
344 0 6 0 $setuphandler->{'SESSION'} and $setuphandler->{'EVENT'}
395 0 0 0 $session and $event
418 0 0 18 ref $handler->[$count] and ref $handler->[$count] eq 'HASH'
425 0 18 0 exists $handler->[$count]{'SESSION'} and defined $handler->[$count]{'SESSION'}
430 0 18 0 exists $handler->[$count]{'EVENT'} and defined $handler->[$count]{'EVENT'}
435 0 18 0 exists $handler->[$count]{'DIR'} and defined $handler->[$count]{'DIR'}
665 0 12 0 $self->loghandler and scalar keys %{$self->loghandler;} == 2
693 0 0 0 $self->errorhandler and $self->errorhandler->{'SESSION'}
0 0 0 $self->errorhandler and $self->errorhandler->{'SESSION'} and $self->errorhandler->{'EVENT'}
774 0 0 0 keys %{$self->_requests;} == 0 and keys %{$self->_connections;} == 0
860 0 12 0 defined $response and UNIVERSAL::isa($response, 'HTTP::Response')
881 0 0 0 $self->errorhandler and $self->errorhandler->{'SESSION'}
0 0 0 $self->errorhandler and $self->errorhandler->{'SESSION'} and $self->errorhandler->{'EVENT'}
902 0 0 0 $self->errorhandler and $self->errorhandler->{'SESSION'}
0 0 0 $self->errorhandler and $self->errorhandler->{'SESSION'} and $self->errorhandler->{'EVENT'}
928 0 12 0 $self->log2handler and scalar keys %{$self->log2handler;} == 2
959 0 0 0 defined $response and UNIVERSAL::isa($response, 'HTTP::Response')
1001 0 0 0 $self->errorhandler and $self->errorhandler->{'SESSION'}
0 0 0 $self->errorhandler and $self->errorhandler->{'SESSION'} and $self->errorhandler->{'EVENT'}
1015 0 0 0 $self->errorhandler and $self->errorhandler->{'SESSION'}
0 0 0 $self->errorhandler and $self->errorhandler->{'SESSION'} and $self->errorhandler->{'EVENT'}
1071 0 0 12 not $stream || $self->proxymode || defined $response->header('Content-Length') and my $len = length $response->content
1086 0 0 12 $request and $request->isa('HTTP::Request')
1099 0 0 0 defined $response and UNIVERSAL::isa($response, 'HTTP::Response')
1148 0 0 2 $self->_requests->{$id} and $self->_requests->{$id}->response

or 2 conditions

line l !l condition
799 3 0 $req->header('Connection') || ''
801 0 3 $req->header('Proxy-Connection') || ''
803 0 3 $resp->header('Connection') || ''

or 3 conditions

line l !l&&r !l&&!r condition
409 0 0 6 not ref $handler or ref $handler ne 'ARRAY'
610 0 0 12 not defined $path or $path eq ''
1071 0 0 12 $stream || $self->proxymode || defined $response->header('Content-Length')