blib/lib/Monitoring/Plugin/Getopt.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 31 | 47 | 65.9 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
138 | 80 | 0 | 4 | ref $arg->{'help'} && ref $arg->{'help'} eq 'ARRAY' |
139 | 80 | 0 | 4 | $arg->{'label'} && ref $arg->{'label'} && ref $arg->{'label'} eq 'ARRAY' |
231 | 296 | 5 | 2 | $arg->{'required'} and not defined $$self{$arg->{'name'}} |
290 | 61 | 4 | 0 | /\s/ and /^[^"']/ || /[^"']$/ |
316 | 203 | 0 | 26 | exists $DEFAULT{$key} and $hash->{$key} eq $DEFAULT{$key} |
375 | 25 | 6 | 2 | $args->{'verbose'} and $args->{'verbose'} >= 3 |
397 | 18 | 0 | 195 | exists $params{$_[0]} and @_ % 2 == 0 |
line | l | !l | condition |
---|---|---|---|
321 | 49 | 0 | $self->{'_spec'}{$key} || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
99 | 10 | 2 | 10 | $type eq 'i' or $type eq '+' |
12 | 2 | 8 | $type eq 'i' or $type eq '+' or $type =~ /\d+/ | |
259 | 15 | 0 | 0 | $section ||= $self->{'_attr'}{'plugin'} |
270 | 0 | 15 | 0 | $file ||= $Config->mp_getfile |
290 | 0 | 0 | 4 | /^[^"']/ || /[^"']$/ |
306 | 12 | 13 | 0 | $hash ||= $self |
354 | 8 | 7 | 0 | $extopts ||= $self->{'_attr'}{'plugin'} |
463 | 0 | 36 | 0 | $ENV{'PLUGIN_NAME'} || $ENV{'NAGIOS_PLUGIN'} || $0 |