Branch Coverage

blib/lib/VK/App.pm
Criterion Covered Total %
branch 0 64 0.0


line true false branch
13 0 0 unless _valid_new_args(\%args)
17 0 0 if exists $args{'api_id'}
18 0 0 if exists $args{'login'}
19 0 0 if exists $args{'password'}
20 0 0 if exists $args{'cookie_file'}
21 0 0 exists $args{'scope'} ? :
22 0 0 exists $args{'format'} ? :
23 0 0 exists $args{'cookie_file'} ? :
27 0 0 unless $self->_login
28 0 0 unless $self->_authorize_app
30 0 0 if exists $$self{'cookie_file'}
38 0 0 unless $lpage->is_success
39 0 0 if $lpage->content =~ /action=\"(.+?)\"/
40 0 0 unless $action
46 0 0 if $res->status_line ne '302 Found'
47 0 0 unless $res->header('location') =~ /__q_hash/
49 0 0 unless $res->is_success
64 0 0 unless $res->is_success
66 0 0 if $contect =~ /action=\"(.+)\"/
67 0 0 if (exists $authorize{'approve'})
69 0 0 unless $res->is_success
71 0 0 if ($res->request->uri =~ /access_token=(.+)&expires_in=0&user_id=(\d+)/)
82 0 0 $_[0] ? :
94 0 0 unless ref $args eq 'HASH'
95 0 0 unless ($$args{'api_id'} and $$args{'login'} && $$args{'password'} || $$args{'cookie_file'})
104 0 0 unless exists $$self{'ua'}
110 0 0 unless exists $$self{'access_token'}
116 0 0 unless exists $$self{'uid'}
123 0 0 if $$self{'format'} eq 'XML'
127 0 0 unless $res->is_success
129 0 0 if $$self{'format'} eq 'XML'
130 0 0 if $$self{'format'} eq 'JSON'