Condition Coverage

blib/lib/JMX/Jmx4Perl/Nagios/SingleCheck.pm
Criterion Covered Total %
condition 9 91 9.8


and 3 conditions

line !l l&&!r l&&r condition
184 0 0 0 defined $delta and not $script_mode
195 0 0 0 $self->base || $self->base_mbean and not $script_mode
202 0 0 0 $self->perfdata and $self->perfdata =~ /^\s*\%\s*/
268 0 0 0 $req->get('type') eq 'read' and $req->is_mbean_pattern
279 0 0 0 ref $value and $self->string
452 0 0 0 ref $resp->value and not $self->string
0 0 0 not $req->is_mbean_pattern and (ref $resp->value and not $self->string)
0 0 0 not $req->is_mbean_pattern and (ref $resp->value and not $self->string) and not &JSON::is_bool(scalar $resp->value)
523 0 0 0 defined $config_args and ref $config_args ne 'ARRAY'

or 2 conditions

line l !l condition
43 1 0 shift() || die('No Nagios Plugin given')
128 0 0 $self->script || die('No script given')
163 0 0 shift() || {}
251 0 0 shift() || (return)
256 0 0 $error_stat->{$code} || []
395 13 0 shift() || $self->unit || (return $value, undef)
475 0 0 $self->attribute || $self->operation || ''
581 0 0 $self->_check_string_threshold($value, 2, $self->critical) || $self->_check_string_threshold($value, 1, $self->warning) || 0
683 0 0 $args->{'rel_value'} || 0
687 0 0 $args->{'base'} || 0
689 1 0 ($what eq 'u' ? $args->{'unit'} : $args->{'base_unit'}) || ''

or 3 conditions

line l !l&&r !l&&!r condition
49 0 1 0 ref $class || $class
74 0 0 0 $self->attribute || $self->value
90 0 0 0 $self->{'np'}->opts->{'method'} || $self->{'config'}{'method'}
96 0 0 0 $self->base or $self->base_mbean
165 0 0 0 $np->{'msg_handler'} || $np
195 0 0 0 $self->base || $self->base_mbean
254 0 0 0 $self->{'config'}{'name'} || $self->{'config'}{'key'}
527 0 0 0 @cli_args or @c_args
565 0 0 0 $self->numeric or $self->string
623 0 0 1 $code == 2 or $code == 1
624 0 0 0 $self->base or $self->base_mbean
637 0 0 1 $self->base or $self->base_mbean
682 0 0 3 $what eq 'r' or $what eq 'q'
1 0 2 $what eq 'u' or $what eq 'w'