| line |
true |
false |
branch |
|
16
|
1 |
0 |
unless @_ |
|
18
|
0 |
0 |
exists $opts{'import'} ? : |
|
36
|
0 |
0 |
if (@_ == 1) { } |
|
|
0 |
0 |
elsif (@_ % 2 == 0) { } |
|
41
|
0 |
0 |
if defined $opt{$key} |
|
46
|
0 |
0 |
unless $$self{'api_id'} or $$self{'access_token'} |
|
67
|
0 |
0 |
unless $$self{'browser'}->uri =~ m[^https://oauth.vk.com/blank.html] |
|
87
|
0 |
0 |
if $uri =~ m[https://oauth.vk.com/blank.html#(.*)] |
|
88
|
0 |
0 |
unless defined $params{'access_token'} |
|
90
|
0 |
0 |
unless $params{'expires_in'} |
|
102
|
0 |
0 |
if ($$result{'access_token'}) { } |
|
|
0 |
0 |
elsif ($$result{'error'}) { } |
|
106
|
0 |
0 |
if ($$result{'error'} eq 'need_captcha' and $$self{'captcha_handler'}) { } |
|
|
0 |
0 |
elsif ($self->errors_noauto) { } |
|
112
|
0 |
0 |
if (ref $$self{'errors_noauto'} and ref $$self{'errors_noauto'} eq 'CODE') |
|
121
|
0 |
0 |
"Permament token call didn't return response or error\n" . $Carp::Verbose ? : |
|
129
|
0 |
0 |
unless defined $$self{'access_token'} |
|
130
|
0 |
0 |
if (time - $$self{'auth_time'} > $$self{'expires_in'} and ($$self{'login'} and $$self{'password'} and $$self{'scope'})) |
|
136
|
0 |
0 |
if ($$response{'response'}) { } |
|
|
0 |
0 |
elsif ($$response{'error'}) { } |
|
139
|
0 |
0 |
if (14 == $$response{'error'}{'error_code'} and $$self{'captcha_handler'}) { } |
|
|
0 |
0 |
elsif ($$self{'errors_noauto'}) { } |
|
145
|
0 |
0 |
if (ref $$self{'errors_noauto'} and ref $$self{'errors_noauto'} eq 'CODE') |
|
150
|
0 |
0 |
if (6 == $$response{'error'}{'error_code'}) { } |
|
160
|
0 |
0 |
"API call didn't return response or error\n" . $Carp::Verbose ? : |
|
173
|
0 |
0 |
unless ref $handler eq 'CODE' |
|
190
|
0 |
0 |
defined $token ? : |