Condition Coverage

blib/lib/Nagios/Plugin/Getopt.pm
Criterion Covered Total %
condition 24 38 63.1


and 3 conditions

line !l l&&!r l&&r condition
124 68 0 4 ref $$arg{'help'} && ref $$arg{'help'} eq 'ARRAY'
125 68 0 4 $$arg{'label'} && ref $$arg{'label'} && ref $$arg{'label'} eq 'ARRAY'
215 266 4 2 $$arg{'required'} and not defined $$self{$$arg{'name'}}
271 54 4 0 /\s/ and /^[^"']/ || /[^"']$/
297 188 0 24 exists $DEFAULT{$key} and $$hash{$key} eq $DEFAULT{$key}
355 23 6 2 $$args{'verbose'} and $$args{'verbose'} >= 3
369 17 0 157 $_[0] =~ /^(spec|help|required|default)$/ and scalar(@_) % 2 == 0

or 2 conditions

line l !l condition
302 46 0 $$self{'_spec'}{$key} || ''

or 3 conditions

line l !l&&r !l&&!r condition
243 13 0 0 $section ||= $$self{'_attr'}{'plugin'}
271 0 0 4 /^[^"']/ || /[^"']$/
287 11 12 0 $hash ||= $self
335 7 6 0 $extopts ||= $$self{'_attr'}{'plugin'}
447 0 0 33 $ENV{'NAGIOS_PLUGIN'} || $0