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 1 49 0 defined $code and $code eq 'return_code' || $code eq 'message'
95 0 0 6 int @_ / 2 != @_ / 2 and ref $_[$#_]
107 1 49 0 defined $code and exists $ERRORS{$code}
110 1 49 0 defined $code and exists $STATUS_TEXT{$code}
112 50 0 0 ref $message and ref $message eq 'ARRAY'
121 0 4 46 defined $message and $message ne ''
127 0 42 6 $plugin->perfdata and $plugin->all_perfoutput
164 1 30 0 defined $arg1 and $arg1 eq 'return_code' || $arg1 eq 'message'
1 24 0 defined $arg1 and exists $ERRORS{$arg1} || exists $STATUS_TEXT{$arg1}
1 14 0 defined $arg2 and exists $ERRORS{$arg2} || exists $STATUS_TEXT{$arg2}

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
64 0 0 21 $shortname || $ENV{'NAGIOS_PLUGIN'} || $0
93 6 0 43 $code eq 'return_code' || $code eq 'message'
123 48 2 0 $shortname ||= get_shortname()
164 6 0 24 $arg1 eq 'return_code' || $arg1 eq 'message'
5 0 19 exists $ERRORS{$arg1} || exists $STATUS_TEXT{$arg1}
5 0 9 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'}