Branch Coverage

blib/lib/POE/Component/Client/Keepalive.pm
Criterion Covered Total %
branch 83 122 68.0


line true false branch
41 33 0 unless exists $active_req_ids{++$current_id}
128 1 18 if @_ % 2
139 1 17 if (@unknown)
164 17 0 if $resolver and eval { do { $resolver->isa('POE::Component::Resolver') } }
248 1 35 unless ($$request[12])
258 3 32 if ($$self[4]{$req_key} || 0) >= $$self[6]
265 5 27 if ($existing_connection)
291 1 3 unless @free_sockets
302 0 26 defined $$self[13] ? :
359 1 44 if @_ % 2
365 1 43 unless $scheme
367 1 42 unless $address
369 1 41 unless $port
371 1 40 unless $event
373 1 39 unless $context
375 37 2 unless $timeout
381 0 39 if $$self[11]
384 1 38 if (@unknown)
396 5 33 if (defined $existing_connection)
452 0 0 unless defined $req_id and exists $active_req_ids{$req_id}
457 0 0 unless (defined $request)
474 0 0 if (defined $existing_connection)
488 0 0 unless (exists $$heap{'dns_requests'}{$$request[3]})
512 0 0 unless $$requests[$req_index] == $request
520 0 0 unless (@$requests)
557 0 2 if (defined $$request[11])
565 1 1 if ($$request[18])
622 24 0 unless ($$request[2] eq 'https')
631 0 0 unless ($ssl_available)
686 0 0 if ($@)
733 2 34 if $$self[11]
737 1 33 unless defined $socket
739 1 32 unless defined $used
760 60 10 unless exists $$self[0]{$conn_key}
768 8 2 unless (keys %$free)
797 29 5 unless (--$$self[4]{$request_key})
815 2 30 unless (defined fileno $socket)
834 3 27 if ($socket_is_active)
844 0 3 if ($socket_had_data)
848 0 0 if not $opt_result and $! != 9
895 14 15 if $$self[11]
902 0 15 if $$self[11]
940 1 14 if ($$self[10] != $default_resolver)
945 14 1 if ($default_resolver and not $instances)
960 0 0 if (defined $$request[10])
965 0 0 if (defined $$request[11])
974 0 0 if (defined $$request[0])
1014 6 27 if ($host =~ tr/.// == 3 and ip_is_ipv4($host))
1021 8 19 if (exists $$heap{'dns_requests'}{$host})
1051 0 19 if $$self[11]
1059 19 0 if (defined $requests) { }
1063 0 19 if ($requests eq 'cancelled')
1067 0 19 unless (ref $requests eq 'ARRAY')
1077 1 18 if ($response_error)
1095 0 26 unless $$request[12]
1121 10 22 if @{$$self[1];} > 1
1127 1 21 if keys %{$$self[2];} >= $$self[5]
1135 0 21 if ($$self[4]{$conn_key} || 0) >= $$self[6]
1157 5 2 unless (keys %{$$self[0]{$key};})
1197 1 33 unless $$request[12] and $$request[0]
1221 33 0 if ($$request[10])