Branch Coverage

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


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