Branch Coverage

blib/lib/JMX/Jmx4Perl/Agent.pm
Criterion Covered Total %
branch 3 104 2.8


line true false branch
124 0 4 unless $self->cfg('url')
128 0 4 if $self->cfg('timeout')
133 0 4 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 0 0 unless $url =~ m[/$]
339 0 0 if ($type eq 'read') { }
0 0 elsif ($type eq 'write') { }
0 0 elsif ($type eq 'list') { }
0 0 elsif ($type eq 'exec') { }
0 0 elsif ($type eq 'search') { }
352 0 0 ref $arg eq 'ARRAY' ? :
362 0 0 if ($req =~ /$INVALID_PATH_CHARS/ or $request->{'use_query'})
367 0 0 if $request->get($k)
370 0 0 $req =~ /\?/ ? :
0 0 if @params
382 0 0 $path ? :
394 0 0 if ($self->cfg('legacy-escape')) { }
418 0 0 if (not defined $value) { }
0 0 elsif (not length $value) { }
434 0 0 if ($content and $content ne $http_resp->status_line)
437 0 0 length $short < length $content ? :
448 0 0 if $j->{'stacktrace'}
450 0 0 scalar @ret == 1 ? :
0 0 @ret ? :