line |
true |
false |
branch |
50
|
9 |
0 |
@_ ? : |
54
|
10 |
0 |
@_ ? : |
61
|
4 |
68 |
if defined $arg->{'shortname'} |
62
|
1 |
67 |
if defined $arg->{'plugin'} |
71
|
1 |
6 |
if grep {$_ == 2;} @_ |
72
|
3 |
3 |
if grep {$_ == 1;} @_ |
73
|
2 |
1 |
if grep {$_ == 0;} @_ |
74
|
0 |
1 |
if grep {$_ == 3;} @_ |
75
|
0 |
1 |
if grep {$_ == 4;} @_ |
80
|
1 |
6 |
if grep {$_ == 2;} @_ |
81
|
3 |
3 |
if grep {$_ == 1;} @_ |
82
|
1 |
2 |
if grep {$_ == 3;} @_ |
83
|
0 |
2 |
if grep {$_ == 4;} @_ |
84
|
1 |
1 |
if grep {$_ == 0;} @_ |
93
|
6 |
87 |
if (defined $code and $code eq 'return_code' || $code eq 'message') |
95
|
6 |
0 |
if (int @_ / 2 != @_ / 2 and ref $_[$#_]) { } |
107
|
30 |
63 |
if defined $code and exists $ERRORS{$code} |
110
|
10 |
85 |
unless defined $code and exists $STATUS_TEXT{$code} |
111
|
4 |
91 |
unless defined $message |
112
|
0 |
95 |
if (ref $message and ref $message eq 'ARRAY') { } |
121
|
87 |
8 |
if (defined $message and $message ne '') |
122
|
85 |
2 |
unless $message =~ /^\s*\n/msx |
125
|
48 |
47 |
$arg->{'plugin'} ? : |
127
|
95 |
0 |
if $shortname |
128
|
48 |
47 |
if ($arg->{'plugin'}) |
130
|
6 |
42 |
if $plugin->perfdata and $plugin->all_perfoutput |
136
|
92 |
3 |
if ($_fake_exit) |
147
|
16 |
1 |
if ($_use_die) |
150
|
0 |
34 |
unless @_ |
151
|
16 |
18 |
if ($_[3] =~ /die/) |
167
|
6 |
49 |
if (defined $arg1 and $arg1 eq 'return_code' || $arg1 eq 'message') { } |
|
20 |
29 |
elsif (defined $arg1 and exists $ERRORS{$arg1} || exists $STATUS_TEXT{$arg1}) { } |
|
21 |
8 |
elsif (defined $arg2 and exists $ERRORS{$arg2} || exists $STATUS_TEXT{$arg2}) { } |
217
|
2 |
48 |
unless defined $arg{'join'} |
221
|
21 |
29 |
if @{$arg{'critical'};} |
222
|
37 |
13 |
if @{$arg{'warning'};} |
223
|
6 |
44 |
unless wantarray |
227
|
12 |
32 |
if ($arg{'join_all'}) { } |
229
|
26 |
10 |
@$_ ? : |
232
|
8 |
2 |
ref $arg{'ok'} ? : |
|
10 |
2 |
$arg{'ok'} ? : |
237
|
13 |
19 |
if $code == 2 |
239
|
10 |
22 |
if $code == 1 |
242
|
8 |
1 |
ref $arg{'ok'} ? : |
|
27 |
5 |
if $arg{'ok'} |