Branch Coverage

blib/lib/Net/Facebook/Oauth2.pm
Criterion Covered Total %
branch 21 48 43.7


line true false branch
13 0 2 if ($time[5] >= 118 and $time[4] > 8)
33 3 4 unless ($options{'access_token'})
34 1 2 unless defined $self->{'options'}{'application_id'}
35 1 1 unless defined $self->{'options'}{'application_secret'}
51 0 0 unless defined $params{'callback'}
53 0 0 unless defined $params{'display'}
62 0 0 if ($params{'scope'})
64 0 0 if $scope
66 0 0 if $params{'state'}
67 0 0 if $params{'response_type'}
68 0 0 if $params{'auth_type'}
81 0 0 unless defined $params{'code'}
82 0 0 unless defined $params{'callback'}
98 0 0 if (not $response->is_success or exists $json->{'error'}) { }
0 0 elsif ($json->{'access_token'}) { }
113 5 2 unless ($self->_has_access_token($url))
114 0 5 unless defined $self->{'access_token'}
115 1 4 $self->{'_has_query'} ? :
128 5 2 if $string
137 1 1 unless ($self->_has_access_token($url))
138 0 1 unless defined $self->{'access_token'}
148 1 0 unless ($self->_has_access_token($url))
149 0 1 unless defined $self->{'access_token'}
179 3 7 if (grep {$_ eq 'access_token';} keys %q)