blib/lib/Nagios/Monitoring/Plugin/Getopt.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 25 | 41 | 60.9 |
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'}} |
272 | 54 | 4 | 0 | /\s/ and /^[^"']/ || /[^"']$/ |
298 | 188 | 0 | 24 | exists $DEFAULT{$key} and $hash->{$key} eq $DEFAULT{$key} |
357 | 23 | 6 | 2 | $args->{'verbose'} and $args->{'verbose'} >= 3 |
370 | 17 | 0 | 157 | $_[0] =~ /^(spec|help|required|default)$/ and scalar(@_) % 2 == 0 |
line | l | !l | condition |
---|---|---|---|
303 | 46 | 0 | $self->{'_spec'}{$key} || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
243 | 13 | 0 | 0 | $section ||= $self->{'_attr'}{'plugin'} |
252 | 0 | 13 | 0 | $file ||= $Config->np_getfile |
272 | 0 | 0 | 4 | /^[^"']/ || /[^"']$/ |
288 | 11 | 12 | 0 | $hash ||= $self |
336 | 7 | 6 | 0 | $extopts ||= $self->{'_attr'}{'plugin'} |
448 | 0 | 0 | 33 | $ENV{'NAGIOS_PLUGIN'} || $0 |