Branch Coverage

blib/lib/Mojo/IOLoop/Client.pm
Criterion Covered Total %
branch 25 60 41.6


line true false branch
15 1 58 $ENV{'MOJO_NO_NNR'} ? :
21 1 58 $ENV{'MOJO_NO_SOCKS'} ? :
22 0 58 &SOCKS() ? :
23 0 58 &SOCKS() ? :
33 13 150 ref $_[0] ? :
44 161 2 if $self
45 0 0 if not &NNR() or $args->{'handle'} or $args->{'path'}
57 0 0 if $err
67 0 0 if $NDN and $self->{'dns'}
68 0 322 unless my $reactor = $self->reactor
79 161 0 unless ($handle)
80 0 161 $path ? :
84 0 161 if ($path) { }
88 0 161 if (my $info = $args->{'addr_info'}) { }
93 0 161 if $args->{'local_address'}
97 0 161 unless $self->{'handle'} = $handle = $class->new(%options)
101 0 161 $path ? :
104 0 0 $_[0]{'tls'} ? :
0 160 unless $_[0]{'socks_port'} or $_[0]{'port'}
111 0 161 unless ($handle->connect)
112 0 0 unless $! == 115
117 0 161 unless $handle->connected
130 0 0 if $handle->ready
134 0 0 if ($err == 0) { }
0 0 elsif ($err == 0) { }
143 160 1 unless $args->{'socks_address'}
144 0 0 unless &SOCKS()
151 0 0 if $args->{'socks_user'}
154 0 0 unless 'IO::Socket::Socks'->start_SOCKS($handle, %options)
164 158 2 unless $args->{'tls'}