line |
true |
false |
branch |
50
|
4 |
20 |
if exists $args{'shortname'} |
63
|
1 |
23 |
if (exists $args{'usage'}) |
113
|
14 |
6 |
if ($#_ == 0 and !ref($_[0]) || ref $_[0] eq 'ARRAY') { } |
128
|
3 |
16 |
if (exists $args{'warning'} or exists $args{'critical'}) { } |
|
11 |
5 |
elsif (defined $self->threshold) { } |
|
1 |
4 |
elsif (defined $self->opts) { } |
153
|
2 |
0 |
if $self->_check_for_opts |
157
|
1 |
0 |
if $self->_check_for_opts |
162
|
2 |
3 |
unless ref $self->opts eq 'Nagios::Plugin::Getopt' |
177
|
2 |
16 |
unless defined $Nagios::Plugin::ERRORS{uc $code} or defined $Nagios::Plugin::STATUS_TEXT{$code} |
181
|
7 |
9 |
if $Nagios::Plugin::STATUS_TEXT{$code} |
183
|
2 |
14 |
if $code eq 'unknown' or $code eq 'dependent' |
186
|
0 |
14 |
unless $self->messages->{$code} |
197
|
48 |
42 |
if ($args{$code}) { } |
198
|
4 |
44 |
unless (ref $args{$code} eq 'ARRAY') |
199
|
4 |
0 |
if ($code eq 'ok') { } |