Branch Coverage

blib/lib/Mojo/IOLoop/Client.pm
Criterion Covered Total %
branch 24 52 46.1


line true false branch
13 1 66 $ENV{'MOJO_NO_NNR'} ? :
19 1 66 $ENV{'MOJO_NO_SOCKS'} ? :
31 13 225 ref $_[0] ? :
41 237 1 if $self
53 0 0 if $err
63 0 0 if $NDN and $self->{'dns'}
64 0 472 unless my $reactor = $self->reactor
75 237 0 unless ($handle)
76 0 237 $path ? :
80 0 237 if ($path) { }
84 0 237 if (my $info = $args->{'addr_info'}) { }
89 221 16 if $args->{'socket_options'}
92 0 237 unless $self->{'handle'} = $handle = $class->new(%options)
96 0 237 $path ? :
99 0 0 $_[0]{'tls'} ? :
0 236 unless $_[0]{'socks_port'} or $_[0]{'port'}
106 0 236 unless ($handle->connect)
107 0 0 unless $! == 115
112 0 236 unless $handle->connected
125 0 0 if $handle->ready
129 0 0 if ($err == 0) { }
0 0 elsif ($err == 0) { }
138 235 1 unless $args->{'socks_address'}
142 0 0 if $args->{'socks_user'}
145 0 0 unless "IO::Socket::Socks"->start_SOCKS($handle, %options)
154 233 2 unless $args->{'tls'}