Condition Coverage

blib/lib/POE/Component/Client/Keepalive.pm
Criterion Covered Total %
condition 27 51 52.9


and 3 conditions

line !l l&&!r l&&r condition
164 0 0 17 $resolver and eval { do { $resolver->isa('POE::Component::Resolver') } }
452 0 0 0 defined $req_id and exists $active_req_ids{$req_id}
848 0 0 0 not $opt_result and $! != 9
945 0 1 14 $default_resolver and not $instances
1014 27 0 6 $host =~ tr/.// == 3 and ip_is_ipv4($host)
1197 1 0 33 $$request[12] and $$request[0]

or 2 conditions

line l !l condition
30 15 0 scalar getprotobyname 'tcp' || die("getprotobyname('tcp') failed: $!")
131 4 14 delete $args{'max_per_host'} || 4
132 4 14 delete $args{'max_open'} || 128
133 2 16 delete $args{'keep_alive'} || 15
134 1 17 delete $args{'timeout'} || 120
258 9 26 $$self[4]{$req_key} || 0
838 0 3 sysread($socket, my $buf = '', 65536) || 0
997 1 0 sysread($socket, my $buf = '', 65536) || 0
1135 0 21 $$self[4]{$conn_key} || 0

or 3 conditions

line l !l&&r !l&&!r condition
167 17 0 0 $default_resolver ||= 'POE::Component::Resolver'->new
301 22 4 0 $$request[4] || $$request[3]
377 0 39 0 delete $args{'for_scheme'} || $scheme
378 0 39 0 delete $args{'for_addr'} || $address
379 0 39 0 delete $args{'for_port'} || $port