Condition Coverage

blib/lib/Monitoring/Plugin/Getopt.pm
Criterion Covered Total %
condition 25 41 60.9


and 3 conditions

line !l l&&!r l&&r condition
127 68 0 4 ref $$arg{'help'} && ref $$arg{'help'} eq 'ARRAY'
128 68 0 4 $$arg{'label'} && ref $$arg{'label'} && ref $$arg{'label'} eq 'ARRAY'
218 282 4 2 $$arg{'required'} and not defined $$self{$$arg{'name'}}
275 61 4 0 /\s/ and /^[^"']/ || /[^"']$/
301 203 0 26 exists $DEFAULT{$key} and $$hash{$key} eq $DEFAULT{$key}
359 24 6 2 $$args{'verbose'} and $$args{'verbose'} >= 3
373 17 0 177 $_[0] =~ /^(spec|help|required|default)$/ and scalar(@_) % 2 == 0

or 2 conditions

line l !l condition
306 49 0 $$self{'_spec'}{$key} || ''

or 3 conditions

line l !l&&r !l&&!r condition
246 15 0 0 $section ||= $$self{'_attr'}{'plugin'}
255 0 15 0 $file ||= $Config->mp_getfile
275 0 0 4 /^[^"']/ || /[^"']$/
291 12 13 0 $hash ||= $self
339 8 7 0 $extopts ||= $$self{'_attr'}{'plugin'}
451 0 0 35 $ENV{'PLUGIN_NAME'} || $ENV{'NAGIOS_PLUGIN'} || $0