Branch Coverage

blib/lib/Selenium/Remote/RemoteConnection.pm
Criterion Covered Total %
branch 36 42 85.7


line true false branch
53 1 9 if ($cmdOut ne "OK")
61 1 9 unless ($cmdOut eq "OK")
77 3 27 if ($url =~ /^http/g) { }
1 26 elsif ($url =~ m[^/]) { }
2 24 elsif ($url =~ /grid/g) { }
98 16 14 if (defined $params and $params ne "")
101 1 15 if ($resource->{'payload'})
112 0 30 if $self->debug
120 1 29 if ($dont_process_response)
131 2 228 if ($response->is_redirect) { }
140 77 151 if $self->debug
142 217 11 if ($response->message ne "No Content" and $response->content ne "")
145 2 215 unless ($response->content_type =~ /json/i)
158 18 208 if ($response->is_error) { }
208 0 elsif ($response->is_success) { }
160 17 1 if (defined $decoded_json) { }
174 198 10 if (defined $decoded_json) { }
177 0 0 if (&looks_like_number($decoded_json->{'status'}) and $decoded_json->{'status'} > 0 and $decoded_json->{'value'}{'message'})
187 0 198 if (ref $decoded_json eq "HASH" and $decoded_json->{'error'})
193 71 127 if ($no_content_success) { }
198 0 52 if (ref $data->{'cmd_return'} eq "HASH" and exists $data->{'cmd_return'}{'sessionId'})