Branch Coverage

blib/lib/JMX/Jmx4Perl/Product/BaseHandler.pm
Criterion Covered Total %
branch 15 102 14.7


line true false branch
45 5 0 if ($self->{'aliases'} and $self->{'aliases'}{'attributes'} and not $self->{'aliases'}{'attributes'}{'SERVER_VERSION'})
117 0 0 if $what ne 'version' and $what ne 'vendor'
120 0 0 unless (defined $self->{$what})
121 0 0 if ($self->can("_try_$what")) { }
0 0 elsif ($self->jsr77) { }
124 0 0 if $@
128 0 0 if ($transform and $self->{$what})
129 0 0 if (ref $transform eq 'CODE') { }
0 0 elsif (ref $transform eq 'Regexp') { }
132 0 0 if $self->{$what} =~ /$transform/
167 0 0 if ($what)
170 0 0 if (ref $what eq 'CODE') { }
174 0 0 if $@
176 0 0 if $val and !$pattern || ref $pattern ne 'Regexp'
177 0 0 if $val and $pattern
248 2 3 if (UNIVERSAL::isa($alias_or_name, 'JMX::Jmx4Perl::Alias::Object')) { }
257 0 5 if defined $resolved_ref and not $resolved_ref
262 0 5 unless defined $aliasref
264 1 4 if ref $aliasref eq 'CODE'
265 0 4 if ref $aliasref ne 'ARRAY'
266 1 3 if (ref $aliasref->[0] eq 'CODE')
269 0 1 if ref $aliasref ne 'ARRAY'
271 4 0 $aliasref ? :
297 0 5 unless UNIVERSAL::isa($alias, 'JMX::Jmx4Perl::Alias::Object')
298 4 1 $alias->{'type'} eq 'attribute' ? :
392 0 0 if (defined $self->{$property})
397 0 0 if ($response->status == 404 or $response->status == 400) { }
0 0 elsif ($response->is_ok) { }
420 0 0 if $self->vendor and $self->vendor ne $self->name
421 0 0 if $self->version
482 0 0 if (length $val)
488 0 0 if ($verbose)
491 0 0 if ($rt_args)
495 0 0 if (length $args > $i * 60)
503 0 0 if ($sys_props)
505 0 0 if (ref $sys_props eq 'HASH')
532 0 0 unless $args[0]
542 0 0 if ($resp->{'status'} == 200)
556 0 0 unless $servers and @$servers
571 0 0 unless defined $value
572 0 0 if ($type eq 'mem') { }
0 0 elsif ($type eq 'str' and @$content) { }
0 0 elsif ($type eq 'duration') { }
0 0 elsif ($type eq 'time') { }
591 0 0 unless $args[0]
594 0 0 if $response->status == 404
595 0 0 if $response->is_ok
610 0 0 if $days
611 0 0 if $hours
612 0 0 if $minutes
613 0 0 if $seconds