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
241 0 0 0 $self->opts->report and $self->opts->report eq 'short'
311 0 0 0 defined $code and exists $ERRORS{$code}
312 0 0 0 defined $code and exists $STATUS_TEXT{$code}
336 0 0 0 defined $code and exists $ERRORS{$code}
337 0 0 0 defined $code and exists $STATUS_TEXT{$code}
339 0 0 0 ref $message and ref $message eq 'ARRAY'
347 0 0 0 uc($from) =~ /^(OK|WARNING|CRITICAL|UNKNOWN)$/ and uc($self->opts->negate->{$from}) =~ /^(OK|WARNING|CRITICAL|UNKNOWN)$/
356 0 0 0 defined $message and $message ne ''
357 0 0 0 $self->opts->can('morphmessage') and $self->opts->morphmessage
372 0 0 0 $self->opts->can('isvalidtime') and not $self->opts->isvalidtime
529 0 0 0 $value >= $1 and $value <= $2
552 0 0 0 $value >= $1 and $value <= $2

or 2 conditions

line l !l condition
124 0 0 $args{'uom'} || ''
240 0 0 $message ||= 'no problems'
249 0 0 $message ||= 'no problems'
259 0 0 $self->{'messages'}{$code} || []
276 0 0 $code ||= 2
277 0 0 $code ||= 1
278 0 0 $code ||= 3
459 0 0 $params{'warning'} || 0
460 0 0 $params{'critical'} || 0
462 0 0 $params{'warning'} || 0
463 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'}
294 0 0 0 $message ||= join($arg{'join'}, @{$arg{'critical'};})
296 0 0 0 $message ||= join($arg{'join'}, @{$arg{'warning'};})
298 0 0 0 $message ||= join($arg{'join'}, @{$arg{'unknown'};})
301 0 0 0 $message ||= ref $arg{'ok'} ? join($arg{'join'}, @{$arg{'ok'};}) : $arg{'ok'}
513 0 0 0 $value > $1 or $value < 0
525 0 0 0 $value < $1 or $value > $2
536 0 0 0 $value > $1 or $value < 0
548 0 0 0 $value < $1 or $value > $2