Branch Coverage

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


line true false branch
317 3 10 if (defined $attributes->{'extras'} and ref $attributes->{'extras'} eq 'HASH')
327 0 13 if (exists $attributes->{'format'} and $attributes->{'format'} =~ /json|xml|xspf|jsonp/)
335 0 13 if ($attributes->{'method'} eq 'query_full_url') { }
349 13 0 if ($path)
351 0 13 if $self->debug
353 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'}) { }
365 1 12 if ($path =~ /\{country\}/)
369 1 0 if ($path =~ /\{user_id\}/ and exists $attributes->{'params'}{'user_id'})
374 0 0 if ($path =~ /\{playlist_id\}/ and exists $attributes->{'params'}{'playlist_id'})
380 0 13 if $self->debug
387 3 10 if ($uri_params)
389 1 2 if ($url =~ /\?/)
395 0 13 if $self->debug
399 0 13 if ($attributes->{'client_auth_required'})
401 0 0 if ($self->current_access_token eq '')
402 0 0 if $self->debug
411 0 13 if ($self->grab_response_header == 1)
444 0 13 if ($self->auto_json_decode and $self->result_format eq 'json')
448 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')