Branch Coverage

blib/lib/WWW/Spotify/Endpoint.pm
Criterion Covered Total %
branch 0 122 0.0


line true false branch
29 0 0 defined $value ? :
41 0 0 if ($path)
47 0 0 if $self->debug
51 0 0 if ($attributes->{'client_auth_required'} or $self->force_client_auth != 0)
53 0 0 if ($self->current_access_token eq "")
54 0 0 if $self->debug
62 0 0 $attributes->{'params'} ? :
66 0 0 if ($self->grab_response_header == 1)
73 0 0 if ($self->_has_custom_request_handler)
78 0 0 if ($self->response_content_type =~ m[application/json]iu and not $self->_is_success_status($self->response_status))
80 0 0 if $self->debug
87 0 0 if $self->die_on_response_error and $self->last_error ne ""
105 0 0 if ($path)
111 0 0 if $self->debug
115 0 0 if ($attributes->{'client_auth_required'} or $self->force_client_auth != 0)
117 0 0 if ($self->current_access_token eq "")
118 0 0 if $self->debug
126 0 0 $attributes->{'params'} ? :
130 0 0 if ($self->grab_response_header == 1)
137 0 0 if ($self->_has_custom_request_handler)
142 0 0 unless ($self->_is_success_status($self->response_status))
143 0 0 if $self->debug
150 0 0 if $self->die_on_response_error and $self->last_error ne ""
168 0 0 if ($path)
174 0 0 if $self->debug
178 0 0 if ($attributes->{'client_auth_required'} or $self->force_client_auth != 0)
180 0 0 if ($self->current_access_token eq "")
181 0 0 if $self->debug
189 0 0 $attributes->{'params'} ? :
193 0 0 if ($self->grab_response_header == 1)
200 0 0 if ($self->_has_custom_request_handler)
205 0 0 unless ($self->_is_success_status($self->response_status))
206 0 0 if $self->debug
213 0 0 if $self->die_on_response_error and $self->last_error ne ""
227 0 0 defined $attributes ? :
0 0 if $self->debug
233 0 0 if (defined $attributes->{'extras'} and ref $attributes->{'extras'} eq "HASH")
240 0 0 if $self->debug
243 0 0 if (exists $attributes->{'format'} and $attributes->{'format'} =~ /json|jsonp/u)
250 0 0 if ($attributes->{'method'} eq 'query_full_url') { }
257 0 0 if ($path)
258 0 0 if $self->debug
260 0 0 if ($path =~ /search/u and $attributes->{'method'} eq 'search') { }
0 0 elsif ($path =~ /\{id\}/u and exists $attributes->{'params'}{'id'}) { }
0 0 elsif ($path =~ /\{ids\}/u and exists $attributes->{'params'}{'ids'}) { }
278 0 0 if ($path =~ /\{country\}/u)
284 0 0 if ($path =~ /\{user_id\}/u and exists $attributes->{'params'}{'user_id'})
291 0 0 if ($path =~ /\{playlist_id\}/u and exists $attributes->{'params'}{'playlist_id'})
298 0 0 if ($path =~ /\{category_id\}/u and exists $attributes->{'params'}{'category_id'})
305 0 0 if $self->debug
310 0 0 if ($uri_params)
311 0 0 $url =~ /\?/u ? :
315 0 0 if $self->debug
319 0 0 if ($attributes->{'client_auth_required'} or $self->force_client_auth != 0)
321 0 0 if ($self->current_access_token eq "")
322 0 0 if $self->debug
331 0 0 if ($self->grab_response_header == 1)
338 0 0 if ($self->_has_custom_request_handler)
343 0 0 if ($self->response_content_type =~ m[application/json]iu and not $self->_is_success_status($self->response_status))
345 0 0 if $self->debug
352 0 0 if $self->die_on_response_error and $self->last_error ne ""