Branch Coverage

blib/lib/WebService/GoogleAPI/Client.pm
Criterion Covered Total %
branch 46 86 53.4


line true false branch
84 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'}) { }
99 2 0 if $storage
101 2 0 if defined $params->{'user'}
126 0 0 if (scalar @params_array == 1 and ref $params_array[0] eq 'HASH') { }
131 0 0 if $self->debug > 10
134 0 0 unless $self->has_scope_to_access_api_endpoint($params->{'api_endpoint_id'})
141 0 0 if defined $params->{'api_endpoint_id'}
144 0 0 unless (defined $params->{'path'})
149 0 0 if $params->{'path'} =~ /\{.+\}/msux
151 0 0 if (@teapot_errors > 0) { }
152 0 0 if $self->debug
176 22 88 unless defined $api_discovery_struct->{$expected_key}
179 1 10 unless defined $api_discovery_struct->{'canonicalName'}
195 0 12 unless defined $params->{'api_endpoint_id'}
214 1 9 if defined $params->{'cb_method_discovery_modify'} and ref $params->{'cb_method_discovery_modify'} eq "CODE"
218 8 2 unless defined $params->{'method'}
221 0 10 unless $params->{'method'} =~ /^$method_discovery_struct->{'httpMethod'}$/imsux
224 8 2 unless $params->{'path'}
225 0 10 unless $params->{'path'}
232 8 2 unless $params->{'path'} =~ /^$api_discovery_struct->{'baseUrl'}/gimsux
235 3 7 if @teapot_errors
245 0 43 if @_ > 1
246 0 0 if @_ > 1
258 3 7 if ($params->{'path'} ne $discovery_struct->{'origPath'}) { }
268 6 1 if ($discovery_struct->{'flatPath'})
278 8 9 unless $path_params{camel($_)}
2 8 if grep {$_ eq "flat";} map({() unless $path_params{camel($_)};} keys %{$$params{"options"};})
286 9 8 if ($path_params{$param_name} or $path_params{camel($param_name)})
295 9 0 if $path_params{camel($param_name)}
302 4 5 if ($params->{'path'} =~ /\{ \+ $param_name \}/ux)
307 1 3 if ($param_value =~ /$pattern/u) { }
323 2 1 if $params->{'path'} =~ /$placeholder/u
333 5 3 unless $discovery_struct->{'parameters'}{$param_name}
341 3 7 if (@get_query_params)
345 1 2 $params->{'path'} =~ /\?/u ? :
353 0 2 if $param_value
368 0 0 if (keys %$method_spec) { }
380 0 0 if defined $configured_scopes_hash{$method_scope}
381 0 0 if $granted
383 0 0 if $required_scope_count == 0