blib/lib/Monitoring/Plugin/Getopt.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 31 | 47 | 65.9 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
137 | 76 | 0 | 4 | ref $$arg{'help'} && ref $$arg{'help'} eq 'ARRAY' |
138 | 76 | 0 | 4 | $$arg{'label'} && ref $$arg{'label'} && ref $$arg{'label'} eq 'ARRAY' |
230 | 282 | 4 | 2 | $$arg{'required'} and not defined $$self{$$arg{'name'}} |
287 | 61 | 4 | 0 | /\s/ and /^[^"']/ || /[^"']$/ |
313 | 203 | 0 | 26 | exists $DEFAULT{$key} and $$hash{$key} eq $DEFAULT{$key} |
371 | 24 | 6 | 2 | $$args{'verbose'} and $$args{'verbose'} >= 3 |
385 | 17 | 0 | 181 | $_[0] =~ /^(spec|help|required|default)$/ and scalar(@_) % 2 == 0 |
line | l | !l | condition |
---|---|---|---|
318 | 49 | 0 | $$self{'_spec'}{$key} || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
98 | 10 | 2 | 10 | $type eq 'i' or $type eq '+' |
12 | 2 | 8 | $type eq 'i' or $type eq '+' or $type =~ /\d+/ | |
258 | 15 | 0 | 0 | $section ||= $$self{'_attr'}{'plugin'} |
267 | 0 | 15 | 0 | $file ||= $Config->mp_getfile |
287 | 0 | 0 | 4 | /^[^"']/ || /[^"']$/ |
303 | 12 | 13 | 0 | $hash ||= $self |
351 | 8 | 7 | 0 | $extopts ||= $$self{'_attr'}{'plugin'} |
463 | 0 | 0 | 35 | $ENV{'PLUGIN_NAME'} || $ENV{'NAGIOS_PLUGIN'} || $0 |