Condition Coverage

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


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 282 4 2 $arg->{'required'} and not defined $$self{$arg->{'name'}}
272 61 4 0 /\s/ and /^[^"']/ || /[^"']$/
298 203 0 26 exists $DEFAULT{$key} and $hash->{$key} eq $DEFAULT{$key}
357 24 6 2 $args->{'verbose'} and $args->{'verbose'} >= 3
370 17 0 177 $_[0] =~ /^(spec|help|required|default)$/ and scalar(@_) % 2 == 0

or 2 conditions

line l !l condition
303 49 0 $self->{'_spec'}{$key} || ''

or 3 conditions

line l !l&&r !l&&!r condition
243 15 0 0 $section ||= $self->{'_attr'}{'plugin'}
252 0 15 0 $file ||= $Config->np_getfile
272 0 0 4 /^[^"']/ || /[^"']$/
288 12 13 0 $hash ||= $self
336 8 7 0 $extopts ||= $self->{'_attr'}{'plugin'}
448 0 0 35 $ENV{'NAGIOS_PLUGIN'} || $0