Branch Coverage

blib/lib/Net/Twitch/Oauth2.pm
Criterion Covered Total %
branch 13 38 34.2


line true false branch
21 3 3 unless ($options{'access_token'})
22 1 2 unless defined $$self{'options'}{'application_id'}
23 1 1 unless defined $$self{'options'}{'application_secret'}
38 0 0 unless defined $params{'callback'}
40 0 0 if defined $params{'scope'}
49 0 0 if $scope
59 0 0 unless defined $params{'code'}
60 0 0 unless defined $params{'callback'}
80 0 0 unless ($response->is_success)
91 0 0 if ($token)
101 2 0 unless ($self->_has_access_token($url))
102 0 2 unless defined $$self{'access_token'}
103 0 2 $$self{'_has_query'} ? :
116 0 2 if $string
125 0 0 unless ($self->_has_access_token($url))
126 0 0 unless defined $$self{'access_token'}
136 1 0 unless ($self->_has_access_token($url))
137 0 1 unless defined $$self{'access_token'}
168 0 3 if (grep {$_ eq 'oauth_token';} keys %q)