Condition Coverage

blib/lib/Monitoring/GLPlugin/Commandline.pm
Criterion Covered Total %
condition 1 109 0.9


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
415 0 0 0 $self->opts->can('isvalidtime') and not $self->opts->isvalidtime
572 0 0 0 $value >= $1 and $value <= $2
595 0 0 0 $value >= $1 and $value <= $2
603 0 0 0 not defined $str1 and defined $str2
604 0 0 0 defined $str1 and not defined $str2

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
502 0 0 $params{'warning'} || 0
503 0 0 $params{'critical'} || 0
505 0 0 $params{'warning'} || 0
506 0 0 $params{'critical'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
39 0 7 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'}
556 0 0 0 $value > $1 or $value < 0
568 0 0 0 $value < $1 or $value > $2
579 0 0 0 $value > $1 or $value < 0
591 0 0 0 $value < $1 or $value > $2
602 0 0 0 defined $str1 or defined $str2