| line |
true |
false |
branch |
|
12
|
0 |
1 |
unless $args{'domain'} and $args{'domain'} =~ /\.zendesk\.com\z/ and not $args{'domain'} =~ m[/] |
|
15
|
0 |
1 |
if exists $args{'api'} and $args{'api'} != 2 |
|
17
|
0 |
1 |
unless $args{'email'} |
|
18
|
1 |
0 |
if ($args{'token'}) { } |
|
|
0 |
0 |
elsif ($args{'password'}) { } |
|
39
|
0 |
0 |
if (%extra) |
|
57
|
0 |
0 |
unless $type and $type eq 'GET' || $type eq 'POST' || $type eq 'PUT' || $type eq 'DELETE' |
|
59
|
0 |
0 |
unless $path and not $path =~ m[\A/api] |
|
60
|
0 |
0 |
unless $params and ref $params eq 'HASH' |
|
63
|
0 |
0 |
$method eq 'post' || $method eq 'put' ? : |
|
77
|
0 |
20 |
if $keyword =~ /\s/ |
|
80
|
15 |
5 |
if (ref $value) { } |
|
81
|
13 |
2 |
if (ref $value eq 'HASH') { } |
|
|
2 |
0 |
elsif (ref $value eq 'ARRAY') { } |
|
93
|
0 |
15 |
unless exists $tokens{$inner_key} |
|
96
|
2 |
13 |
unless defined $inner_value |
|
98
|
3 |
12 |
if (ref $inner_value) { } |
|
99
|
0 |
3 |
unless ref $inner_value eq 'ARRAY' |
|
100
|
1 |
2 |
if ($inner_key eq 'and') { } |
|
|
2 |
0 |
elsif ($inner_key eq '=' or $inner_key eq 'or') { } |
|
103
|
0 |
1 |
$_ =~ /\s/ ? : |
|
|
1 |
1 |
defined $_ ? : |
|
108
|
2 |
2 |
unless defined $or |
|
109
|
0 |
4 |
if $or =~ /\s/ |
|
118
|
2 |
10 |
if $inner_value =~ /\s/ |
|
119
|
1 |
11 |
$inner_key eq '!=' ? : |
|
126
|
1 |
3 |
unless defined $or |
|
127
|
0 |
4 |
if $or =~ /\s/ |
|
136
|
1 |
4 |
unless defined $value |
|
137
|
1 |
4 |
if $value =~ /\s/ |
|
146
|
0 |
0 |
if $self->{'_ua'} |