| line |
true |
false |
branch |
|
26
|
0 |
7 |
if eval {
do {
&Time::HiRes::alarm(0)
}
} |
|
105
|
0 |
0 |
if (my $code = $METHODS{$type}) { } |
|
112
|
0 |
0 |
if $@ |
|
126
|
5 |
8 |
if ($type eq 'getaddrinfo') { } |
|
|
3 |
5 |
elsif ($type eq 'getnameinfo') { } |
|
219
|
0 |
13 |
unless defined $type |
|
221
|
1 |
12 |
if ($type eq "getaddrinfo_hash") |
|
225
|
0 |
13 |
unless exists $METHODS{$type} |
|
228
|
5 |
8 |
if ($on_resolved = $args{'on_resolved'}) { } |
|
|
0 |
8 |
elsif (not defined wantarray) { } |
|
229
|
0 |
5 |
unless ref $on_resolved |
|
236
|
5 |
8 |
if ($on_error = $args{'on_error'}) { } |
|
|
0 |
8 |
elsif (not defined wantarray) { } |
|
237
|
0 |
5 |
unless ref $on_error |
|
245
|
12 |
1 |
if $IO::Async::Resolver::METRICS |
|
251
|
1 |
0 |
if $IO::Async::Resolver::METRICS |
|
255
|
5 |
8 |
if $on_resolved |
|
256
|
5 |
8 |
if $on_error |
|
258
|
8 |
5 |
if defined wantarray |
|
355
|
0 |
16 |
unless $args{'on_resolved'} or defined wantarray |
|
358
|
0 |
16 |
unless $args{'on_error'} or defined wantarray |
|
364
|
3 |
13 |
if $args{'passive'} |
|
366
|
6 |
10 |
if defined $args{'family'} |
|
367
|
16 |
0 |
if defined $args{'socktype'} |
|
379
|
12 |
4 |
if ($host =~ /^[\d.]+$/u || $host =~ /^[[:xdigit:]:]$/u || $host eq '' and $service =~ /^\d*$/u) |
|
386
|
12 |
0 |
if (not $err) { } |
|
|
0 |
0 |
elsif ($err == -2) { } |
|
388
|
3 |
9 |
if $args{'on_resolved'} |
|
396
|
0 |
0 |
if $args{'on_error'} |
|
407
|
7 |
5 |
exists $args{$_} ? : |
|
412
|
1 |
3 |
if $args{'on_resolved'} |
|
413
|
1 |
3 |
if $args{'on_error'} |
|
415
|
3 |
1 |
if defined wantarray |
|
498
|
0 |
5 |
unless $args{'on_resolved'} or defined wantarray |
|
501
|
0 |
5 |
unless $args{'on_error'} or defined wantarray |
|
505
|
0 |
5 |
if $args{'numerichost'} |
|
506
|
0 |
5 |
if $args{'numericserv'} |
|
507
|
0 |
5 |
if $args{'dgram'} |
|
509
|
2 |
3 |
if $args{'numeric'} |
|
511
|
2 |
3 |
if ($flags & 3) |
|
515
|
0 |
2 |
if ($err) { } |
|
517
|
0 |
0 |
if $args{'on_error'} |
|
522
|
1 |
1 |
if $args{'on_resolved'} |
|
535
|
1 |
2 |
if $args{'on_resolved'} |
|
536
|
1 |
2 |
if $args{'on_error'} |
|
538
|
2 |
1 |
if defined wantarray |
|
582
|
0 |
105 |
if $started |
|
584
|
0 |
105 |
if exists $METHODS{$name} |