| line |
true |
false |
branch |
|
88
|
0 |
2 |
if ($params->{'auth_storage'}) { } |
|
|
2 |
0 |
elsif ($file = $params->{'gapi_json'}) { } |
|
|
0 |
0 |
elsif ($file = $params->{'service_account'}) { } |
|
|
0 |
0 |
elsif ($file = $ENV{'GOOGLE_APPLICATION_CREDENTIALS'}) { } |
|
104
|
2 |
0 |
if $storage |
|
106
|
2 |
0 |
if defined $params->{'user'} |
|
131
|
0 |
0 |
if (scalar @params_array == 1 and ref $params_array[0] eq 'HASH') { } |
|
136
|
0 |
0 |
if $self->debug > 10 |
|
139
|
0 |
0 |
unless $self->has_scope_to_access_api_endpoint($params->{'api_endpoint_id'}) |
|
146
|
0 |
0 |
if defined $params->{'api_endpoint_id'} |
|
149
|
0 |
0 |
unless (defined $params->{'path'}) |
|
155
|
0 |
0 |
if $params->{'path'} =~ /\{.+\}/msux |
|
157
|
0 |
0 |
if (@teapot_errors > 0) { } |
|
158
|
0 |
0 |
if $self->debug |
|
183
|
22 |
88 |
unless defined $api_discovery_struct->{$expected_key} |
|
186
|
1 |
10 |
unless defined $api_discovery_struct->{'canonicalName'} |
|
203
|
0 |
12 |
unless defined $params->{'api_endpoint_id'} |
|
224
|
1 |
9 |
if defined $params->{'cb_method_discovery_modify'} and ref $params->{'cb_method_discovery_modify'} eq 'CODE' |
|
228
|
8 |
2 |
unless defined $params->{'method'} |
|
231
|
0 |
10 |
unless $params->{'method'} =~ /^$method_discovery_struct->{'httpMethod'}$/imsux |
|
234
|
8 |
2 |
unless $params->{'path'} |
|
235
|
0 |
10 |
unless $params->{'path'} |
|
244
|
8 |
2 |
unless $params->{'path'} =~ /^$api_discovery_struct->{'baseUrl'}/gimsux |
|
247
|
3 |
7 |
if @teapot_errors |
|
257
|
0 |
43 |
if @_ > 1 |
|
258
|
0 |
0 |
if @_ > 1 |
|
270
|
3 |
7 |
if ($params->{'path'} ne $discovery_struct->{'origPath'}) { } |
|
281
|
6 |
1 |
if ($discovery_struct->{'flatPath'}) |
|
294
|
8 |
9 |
unless $path_params{camel($_)} |
|
|
2 |
8 |
if grep {$_ eq 'flat';} map({() unless $path_params{camel($_)};} keys %{$$params{'options'};}) |
|
302
|
9 |
8 |
if ($path_params{$param_name} or $path_params{camel($param_name)}) |
|
311
|
9 |
0 |
if $path_params{camel($param_name)} |
|
318
|
4 |
5 |
if ($params->{'path'} =~ /\{ \+ $param_name \}/ux) |
|
323
|
1 |
3 |
if ($param_value =~ /$pattern/u) { } |
|
339
|
2 |
1 |
if $params->{'path'} =~ /$placeholder/u |
|
349
|
5 |
3 |
unless $discovery_struct->{'parameters'}{$param_name} |
|
357
|
3 |
7 |
if (@get_query_params) |
|
361
|
1 |
2 |
$params->{'path'} =~ /\?/u ? : |
|
369
|
0 |
2 |
if $param_value |
|
385
|
0 |
0 |
if (keys %$method_spec) { } |
|
397
|
0 |
0 |
if defined $configured_scopes_hash{$method_scope} |
|
398
|
0 |
0 |
if $granted |
|
400
|
0 |
0 |
if $required_scope_count == 0 |