Condition Coverage

blib/lib/Nagios/Monitoring/Plugin/Functions.pm
Criterion Covered Total %
condition 39 63 61.9


and 3 conditions

line !l l&&!r l&&r condition
93 2 90 0 defined $code and $code eq 'return_code' || $code eq 'message'
95 0 0 6 int @_ / 2 != @_ / 2 and ref $_[$#_]
107 2 90 0 defined $code and exists $ERRORS{$code}
110 2 90 0 defined $code and exists $STATUS_TEXT{$code}
112 92 0 0 ref $message and ref $message eq 'ARRAY'
121 0 8 84 defined $message and $message ne ''
127 0 42 6 $plugin->perfdata and $plugin->all_perfoutput
164 2 53 0 defined $arg1 and $arg1 eq 'return_code' || $arg1 eq 'message'
2 47 0 defined $arg1 and exists $ERRORS{$arg1} || exists $STATUS_TEXT{$arg1}
5 24 0 defined $arg2 and exists $ERRORS{$arg2} || exists $STATUS_TEXT{$arg2}

or 2 conditions

line l !l condition
104 48 44 $arg ||= {}
218 0 21 $code ||= 2
219 19 18 $code ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
64 0 0 64 $shortname || $ENV{'NAGIOS_PLUGIN'} || $0
93 6 0 84 $code eq 'return_code' || $code eq 'message'
123 48 44 0 $shortname ||= get_shortname()
164 6 0 47 $arg1 eq 'return_code' || $arg1 eq 'message'
10 0 37 exists $ERRORS{$arg1} || exists $STATUS_TEXT{$arg1}
10 0 14 exists $ERRORS{$arg2} || exists $STATUS_TEXT{$arg2}
234 0 13 0 $message ||= join($arg{'join'}, @{$arg{'critical'};})
236 0 10 0 $message ||= join($arg{'join'}, @{$arg{'warning'};})
239 18 8 1 $message ||= ref $arg{'ok'} ? join($arg{'join'}, @{$arg{'ok'};}) : $arg{'ok'}