Branch Coverage

blib/lib/POE/Component/Resolver.pm
Criterion Covered Total %
branch 37 94 39.3


line true false branch
40 0 5 if @args % 2
49 4 1 if (defined $af_order and @$af_order) { }
0 1 elsif (exists $ENV{'POCO_RESOLVER_IPV'}) { }
50 0 4 if (ref $af_order eq '') { }
0 4 elsif (ref $af_order ne 'ARRAY') { }
57 3 3 if $_ ne 2
58 0 4 if @illegal_afs
68 1 4 unless ($af_order and @$af_order)
74 0 5 if @error
76 5 0 unless (defined $sidecar_program and length $sidecar_program)
77 0 5 if ($^O eq 'MSWin32') { }
131 5 0 unless $POE::Component::Resolver::poe_kernel->alias_resolve($$self{'alias'})
133 0 0 if $$self{'debug'}
140 0 5 if $$heap{'debug'}
147 0 0 unless $POE::Component::Resolver::poe_kernel->alias_resolve($$self{'alias'})
149 0 0 if $$self{'debug'}
176 0 0 if $$heap{'debug'}
198 0 4 if $$heap{'shutdown'}
203 0 4 if $$heap{'debug'}
251 0 0 unless exists $$heap{'requests'}{$request_id}
263 0 5 if $$heap{'debug'}
278 0 4 if $$heap{'shutdown'}
307 0 0 if exists $$heap{'sidecar_id'}{$$request{'sidecar_id'}}
331 0 0 unless scalar keys %{$$heap{'requests'};}
343 0 4 if @args % 2
347 0 4 unless defined $host and length $host
350 0 4 unless defined $service and length $service
355 0 4 unless defined $misc
361 4 0 unless defined $event and length $event
364 0 4 if @error
367 0 4 unless $result = $POE::Component::Resolver::poe_kernel->call($$self{'alias'}, 'request', $host, $service, $hints, $event, $misc)
373 0 4 if $$self{'debug'}
395 0 0 if $$heap{'shutdown'}
404 0 0 if (defined $sidecar)
412 0 0 unless $$heap{'sidecar_ring'}[$i]->ID == $wheel_id
418 0 0 if scalar keys %{$$heap{'requests'};}
431 0 4 unless defined $request_rec
433 4 0 if (defined $$heap{'af_order'})
447 0 4 if $$heap{'debug'}
455 4 0 unless scalar keys %{$$heap{'requests'};}
465 4 0 unless exists $$heap{'sidecar'}{$pid}
473 0 0 unless $$heap{'sidecar_ring'}[$i]->ID == $sidecar_id
478 0 0 if scalar keys %{$$heap{'requests'};}
488 4 0 unless scalar keys %{$$heap{'requests'};}
496 0 4 unless @{$$heap{'sidecar_ring'};}
517 0 6 if $error
518 0 6 if wantarray