Branch Coverage

blib/lib/WWW/Spotify.pm
Criterion Covered Total %
branch 18 80 22.5


line true false branch
323 0 2 if (defined $attributes->{'extras'} and ref $attributes->{'extras'} eq 'HASH')
333 0 2 if (exists $attributes->{'format'} and $attributes->{'format'} =~ /json|xml|xspf|jsonp/)
341 0 2 if ($attributes->{'method'} eq 'query_full_url') { }
355 2 0 if ($path)
357 0 2 if $self->debug
359 0 2 if ($path =~ /search/ and $attributes->{'method'} eq 'search') { }
1 1 elsif ($path =~ /\{id\}/ and exists $attributes->{'params'}{'id'}) { }
1 0 elsif ($path =~ /\{ids\}/ and exists $attributes->{'params'}{'ids'}) { }
371 0 2 if ($path =~ /\{country\}/)
375 0 0 if ($path =~ /\{user_id\}/ and exists $attributes->{'params'}{'user_id'})
380 0 0 if ($path =~ /\{playlist_id\}/ and exists $attributes->{'params'}{'playlist_id'})
386 0 2 if $self->debug
393 0 2 if ($uri_params)
395 0 0 if ($url =~ /\?/)
401 0 2 if $self->debug
405 0 2 if ($attributes->{'client_auth_required'} or $self->force_client_auth != 0)
408 0 0 if ($self->current_access_token eq '')
409 0 0 if $self->debug
418 0 2 if ($self->grab_response_header == 1)
451 0 2 if ($self->auto_json_decode and $self->result_format eq 'json')
455 0 2 if ($self->auto_xml_decode and $self->result_format eq 'xml')
473 0 0 if ($self->current_oath_code)
503 0 0 if ($self->current_access_token ne '')
506 0 0 if ($self->oauth_client_id eq '')
527 0 0 if ($scope)
538 0 0 if ($content =~ /access_token/)
539 0 0 if $self->debug
543 0 0 if ($result->{'access_token'})
563 0 0 if ($scope)
568 0 0 if ($scope eq $s)
573 0 0 if ($good_scope == 0)
602 0 0 if ($scope)
639 0 0 if $self->debug
643 0 0 if ($key =~ /\*\]/)
651 0 0 if ($type eq 'value') { }
658 0 0 if (wantarray) { }
682 0 0 if ($self->uri_domain_path)
722 0 1 if (ref $ids eq 'ARRAY')
772 0 0 if (ref $artists eq 'ARRAY')
932 0 0 if (ref $tracks eq 'ARRAY')