Condition Coverage

blib/lib/Monitoring/GLPlugin/Commandline.pm
Criterion Covered Total %
condition 1 100 1.0


and 3 conditions

line !l l&&!r l&&r condition
65 0 0 0 $self->opts->verbose and $self->opts->verbose > 10
101 0 0 0 $self->opts->can('selectedperfdata') and $self->opts->selectedperfdata
127 0 0 0 $self->opts->can('morphperfdata') and $self->opts->morphperfdata
263 0 0 0 $self->opts->report and $self->opts->report eq 'short'
333 0 0 0 defined $code and exists $ERRORS{$code}
334 0 0 0 defined $code and exists $STATUS_TEXT{$code}
367 0 0 0 defined $code and exists $ERRORS{$code}
368 0 0 0 defined $code and exists $STATUS_TEXT{$code}
370 0 0 0 ref $message and ref $message eq 'ARRAY'
378 0 0 0 uc($from) =~ /^(OK|WARNING|CRITICAL|UNKNOWN)$/ and uc($self->opts->negate->{$from}) =~ /^(OK|WARNING|CRITICAL|UNKNOWN)$/
387 0 0 0 defined $message and $message ne ''
388 0 0 0 $self->opts->can('morphmessage') and $self->opts->morphmessage
403 0 0 0 $self->opts->can('isvalidtime') and not $self->opts->isvalidtime
560 0 0 0 $value >= $1 and $value <= $2
583 0 0 0 $value >= $1 and $value <= $2

or 2 conditions

line l !l condition
124 0 0 $args{'uom'} || ''
262 0 0 $message ||= 'no problems'
271 0 0 $message ||= 'no problems'
281 0 0 $self->{'messages'}{$code} || []
298 0 0 $code ||= 2
299 0 0 $code ||= 1
300 0 0 $code ||= 3
490 0 0 $params{'warning'} || 0
491 0 0 $params{'critical'} || 0
493 0 0 $params{'warning'} || 0
494 0 0 $params{'critical'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
39 0 3 0 $self->{'plugin'} ||= $Monitoring::GLPlugin::pluginname
153 0 0 0 exists $args{'warning'} || exists $args{'critical'}
0 0 0 $args{'thresholds'} or not exists $args{'warning'} || exists $args{'critical'}
316 0 0 0 $message ||= join($arg{'join'}, @{$arg{'critical'};})
318 0 0 0 $message ||= join($arg{'join'}, @{$arg{'warning'};})
320 0 0 0 $message ||= join($arg{'join'}, @{$arg{'unknown'};})
323 0 0 0 $message ||= ref $arg{'ok'} ? join($arg{'join'}, @{$arg{'ok'};}) : $arg{'ok'}
544 0 0 0 $value > $1 or $value < 0
556 0 0 0 $value < $1 or $value > $2
567 0 0 0 $value > $1 or $value < 0
579 0 0 0 $value < $1 or $value > $2