Condition Coverage

blib/lib/IO/Socket/HappyEyeballs.pm
Criterion Covered Total %
condition 44 83 53.0


and 3 conditions

line !l l&&!r l&&r condition
65 7 0 4 $args{'PeerHost'} || $args{'PeerAddr'} and $args{'PeerPort'}
74 2 0 1 $ip_class ne "IO::Socket::IP" and $ip_class ne "IO::Socket::HappyEyeballs"
2 0 1 $ip_class ne "IO::Socket::IP" and $ip_class ne "IO::Socket::HappyEyeballs" and $ip_class->isa("IO::Socket::IP")
174 9 0 1 $err || !@results and $flags
215 10 1 6 $preferred_family and $preferred_family == 2
251 0 9 0 not $last_resort_done and $addr_idx >= @$addresses
9 0 0 not $last_resort_done and $addr_idx >= @$addresses and not @pending
9 0 0 not $last_resort_done and $addr_idx >= @$addresses and not @pending and $last_attempt_time
255 0 0 0 $synth_addresses and @$synth_addresses
264 0 0 9 $addr_idx < @$addresses and $now >= $next_attempt_time
300 0 0 2 @ready and $ready[1]
352 6 0 1 exists $args->{'Blocking'} and not $args->{'Blocking'}
372 0 0 2 defined $host and defined $port
428 1 0 0 not $err and @results

or 2 conditions

line l !l condition
66 1 3 $args{'Proto'} || ''
67 0 4 $args{'Type'} || 0
98 3 1 $args->{'Timeout'} // 30
129 6 0 $args{'Timeout'} // 30

or 3 conditions

line l !l&&r !l&&!r condition
65 3 1 7 $args{'PeerHost'} || $args{'PeerAddr'}
68 3 1 0 not $proto or $proto eq "tcp"
4 0 0 not $proto or $proto eq "tcp" or $type == 1
1 0 0 not $proto or $proto eq "tcp" or $type == 1 or not $type
94 3 1 0 $args->{'PeerHost'} || $args->{'PeerAddr'}
97 0 4 0 delete $args->{'ConnectionAttemptDelay'} // $DEFAULT_DELAY
124 6 0 0 $args{'PeerHost'} || $args{'PeerAddr'}
128 0 6 0 delete $args{'ConnectionAttemptDelay'} // $DEFAULT_DELAY
174 1 0 9 $err || !@results
223 21 0 17 @$primary or @$secondary
243 9 0 2 $addr_idx < @$addresses or @pending