Branch Coverage

blib/lib/Sprocket/Client.pm
Criterion Covered Total %
branch 20 42 47.6


line true false branch
69 0 4 if $$self{'opts'}{'client_session_options'}
73 0 4 if $$self{'opts'}{'client_alias'}
78 0 4 ref $_ eq 'ARRAY' ? :
96 0 4 if (my $tid = $con->time_out_id)
110 4 0 unless $opts
120 4 0 unless defined $$opts{'time_out'}
144 0 4 unless ($con->plugin)
176 0 0 if (my $tid = $con->time_out_id)
220 0 2 if ($errnum != 0)
240 0 5 if $con->close_on_flush and not $con->get_driver_out_octets
248 4 4 unless ($_[2] and ref $_[2])
255 0 4 if ref $address eq 'ARRAY'
257 4 0 unless defined $port
260 0 4 unless defined $port
267 0 4 if (not $address =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/) { }
271 0 0 unless ($named_ses)
311 0 0 unless (defined $response_obj)
342 4 4 unless ($_[2] and ref $_[2])
355 4 0 unless $noclose
360 0 4 if ($$self{'opts'}{'connect_time_out'})
385 0 1 unless defined $_