| line |
true |
false |
branch |
|
28
|
0 |
7 |
if eval {
do {
&Time::HiRes::alarm(0)
}
} |
|
103
|
0 |
0 |
if (my $code = $METHODS{$type}) { } |
|
110
|
0 |
0 |
if $@ |
|
124
|
5 |
10 |
if ($type eq 'getaddrinfo') { } |
|
|
3 |
7 |
elsif ($type eq 'getnameinfo') { } |
|
217
|
0 |
15 |
unless defined $type |
|
219
|
1 |
14 |
if ($type eq "getaddrinfo_hash") |
|
223
|
0 |
15 |
unless exists $METHODS{$type} |
|
226
|
7 |
8 |
if ($on_resolved = $args{'on_resolved'}) { } |
|
|
0 |
8 |
elsif (not defined wantarray) { } |
|
227
|
0 |
7 |
unless ref $on_resolved |
|
234
|
7 |
8 |
if ($on_error = $args{'on_error'}) { } |
|
|
0 |
8 |
elsif (not defined wantarray) { } |
|
235
|
0 |
7 |
unless ref $on_error |
|
243
|
14 |
1 |
if $IO::Async::Resolver::METRICS |
|
249
|
1 |
0 |
if $IO::Async::Resolver::METRICS |
|
253
|
7 |
8 |
if $on_resolved |
|
254
|
7 |
8 |
if $on_error |
|
256
|
8 |
7 |
if defined wantarray |
|
353
|
0 |
16 |
unless $args{'on_resolved'} or defined wantarray |
|
356
|
0 |
16 |
unless $args{'on_error'} or defined wantarray |
|
359
|
2 |
14 |
unless defined $service |
|
362
|
3 |
13 |
if $args{'passive'} |
|
364
|
6 |
10 |
if defined $args{'family'} |
|
365
|
16 |
0 |
if defined $args{'socktype'} |
|
377
|
12 |
4 |
if ($host =~ /^[\d.]+$/ || $host =~ /^[[:xdigit:]:]$/ || $host eq '' and $service =~ /^\d*$/) |
|
384
|
12 |
0 |
if (not $err) { } |
|
|
0 |
0 |
elsif ($err == -2) { } |
|
386
|
3 |
9 |
if $args{'on_resolved'} |
|
394
|
0 |
0 |
if $args{'on_error'} |
|
405
|
7 |
5 |
exists $args{$_} ? : |
|
410
|
1 |
3 |
if $args{'on_resolved'} |
|
411
|
1 |
3 |
if $args{'on_error'} |
|
413
|
3 |
1 |
if defined wantarray |
|
496
|
0 |
5 |
unless $args{'on_resolved'} or defined wantarray |
|
499
|
0 |
5 |
unless $args{'on_error'} or defined wantarray |
|
503
|
0 |
5 |
if $args{'numerichost'} |
|
504
|
0 |
5 |
if $args{'numericserv'} |
|
505
|
0 |
5 |
if $args{'dgram'} |
|
507
|
2 |
3 |
if $args{'numeric'} |
|
509
|
2 |
3 |
if ($flags & 3) |
|
513
|
0 |
2 |
if ($err) { } |
|
515
|
0 |
0 |
if $args{'on_error'} |
|
520
|
1 |
1 |
if $args{'on_resolved'} |
|
533
|
1 |
2 |
if $args{'on_resolved'} |
|
534
|
1 |
2 |
if $args{'on_error'} |
|
536
|
2 |
1 |
if defined wantarray |
|
578
|
0 |
105 |
if $started |
|
580
|
0 |
105 |
if exists $METHODS{$name} |