Branch Coverage

blib/lib/WWW/Spotify.pm
Criterion Covered Total %
branch 29 80 36.2


line true false branch
316 3 10 if (defined $attributes->{'extras'} and ref $attributes->{'extras'} eq 'HASH')
326 0 13 if (exists $attributes->{'format'} and $attributes->{'format'} =~ /json|xml|xspf|jsonp/)
334 0 13 if ($attributes->{'method'} eq 'query_full_url') { }
348 13 0 if ($path)
350 0 13 if $self->debug
352 1 12 if ($path =~ /search/ and $attributes->{'method'} eq 'search') { }
7 5 elsif ($path =~ /\{id\}/ and exists $attributes->{'params'}{'id'}) { }
4 1 elsif ($path =~ /\{ids\}/ and exists $attributes->{'params'}{'ids'}) { }
364 1 12 if ($path =~ /\{country\}/)
368 1 0 if ($path =~ /\{user_id\}/ and exists $attributes->{'params'}{'user_id'})
373 0 0 if ($path =~ /\{playlist_id\}/ and exists $attributes->{'params'}{'playlist_id'})
379 0 13 if $self->debug
386 3 10 if ($uri_params)
388 1 2 if ($url =~ /\?/)
394 0 13 if $self->debug
398 0 13 if ($attributes->{'client_auth_required'})
400 0 0 if ($self->current_access_token eq '')
401 0 0 if $self->debug
410 0 13 if ($self->grab_response_header == 1)
443 0 13 if ($self->auto_json_decode and $self->result_format eq 'json')
447 0 13 if ($self->auto_xml_decode and $self->result_format eq 'xml')
465 0 0 if ($self->current_oath_code)
495 0 0 if ($self->current_access_token ne '')
498 0 0 if ($self->oauth_client_id eq '')
519 0 0 if ($scope)
530 0 0 if ($content =~ /access_token/)
531 0 0 if $self->debug
535 0 0 if ($result->{'access_token'})
558 0 0 if ($scope)
563 0 0 if ($scope eq $s)
568 0 0 if ($good_scope == 0)
597 0 0 if ($scope)
634 0 0 if $self->debug
638 0 0 if ($key =~ /\*\]/)
646 0 0 if ($type eq 'value') { }
653 0 0 if (wantarray) { }
677 0 0 if ($self->uri_domain_path)
717 1 1 if (ref $ids eq 'ARRAY')
767 0 1 if (ref $artists eq 'ARRAY')
916 0 1 if (ref $tracks eq 'ARRAY')