Branch Coverage

blib/lib/JMX/Jmx4Perl/Agent.pm
Criterion Covered Total %
branch 13 104 12.5


line true false branch
124 0 5 unless $self->cfg('url')
128 0 5 if $self->cfg('timeout')
133 0 5 if ($proxy)
134 0 0 ref $proxy eq 'HASH' ? :
135 0 0 if (ref $url eq 'HASH') { }
140 0 0 if ($self->cfg('url') =~ m[^(.*?)://]) { }
175 0 0 $self->cfg('target') ? :
178 0 0 if ($self->{'cfg'}{'verbose'})
185 0 0 if ($self->{'cfg'}{'verbose'})
193 0 0 if ($http_resp->is_error) { }
0 0 elsif ($json_error) { }
201 0 0 $json_error ? :
0 0 ref $json_resp eq 'ARRAY' ? :
0 0 $json_error ? :
0 0 ref $json_resp eq 'ARRAY' ? :
0 0 @jmx_requests == 1 ? :
219 0 0 if (not wantarray and scalar @responses == 1) { }
242 0 0 if ($self->_use_GET_request(\@reqs)) { }
248 0 0 unless $url =~ m[/$]
250 0 0 @reqs > 1 ? :
260 0 0 if (@$reqs == 1) { }
264 0 0 if defined $req->get('target')
267 0 0 if defined $r
281 0 0 if (ref $json_resp eq 'HASH') { }
0 0 elsif (ref $json_resp eq 'ARRAY') { }
284 0 0 unless scalar @reqs == scalar @$json_resp
289 0 0 unless ref $json_resp->[$i] eq 'HASH'
295 0 0 ref $json_resp ? :
305 0 0 unless exists $req->{'target'}
308 0 0 unless defined $req->{'target'}
315 0 0 unless $self->cfg('target')
317 0 0 if ($target->{'env'})
333 4 0 unless $url =~ m[/$]
339 0 4 if ($type eq 'read') { }
0 4 elsif ($type eq 'write') { }
4 0 elsif ($type eq 'list') { }
0 0 elsif ($type eq 'exec') { }
0 0 elsif ($type eq 'search') { }
354 0 0 ref $arg eq 'ARRAY' ? :
364 0 4 if ($req =~ /$INVALID_PATH_CHARS/ or $request->{'use_query'})
369 0 16 if $request->get($k)
372 0 0 $req =~ /\?/ ? :
0 4 if @params
384 2 2 $path ? :
396 0 4 if ($self->cfg('legacy-escape')) { }
420 0 0 if (not defined $value) { }
0 0 elsif (not length $value) { }
436 0 0 if ($content and $content ne $http_resp->status_line)
439 0 0 length $short < length $content ? :
450 0 0 if $j->{'stacktrace'}
452 0 0 scalar @ret == 1 ? :
0 0 @ret ? :