Branch Coverage

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


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