Branch Coverage

lib/Mailru/Cloud/Auth.pm
Criterion Covered Total %
branch 0 46 0.0


line true false branch
39 0 0 if ($res->code ne '200')
43 0 0 unless ($login_token)
65 0 0 if ($res->code ne '200')
70 0 0 if ($json->{'status'} eq 'fail')
74 0 0 unless $self->__getToken
94 0 0 if ($res->is_success)
97 0 0 if ($content =~ /"csrf"\s*:\s*"([a-zA-Z0-9]+?)"/)
99 0 0 if $self->{'debug'}
101 0 0 if ($content =~ /"email"\s*:\s*"(.+?)"/)
103 0 0 if $self->{'debug'}
107 0 0 if ($content =~ /"BUILD"\s*:\s*"(.+?)"/)
109 0 0 if $self->{'debug'}
114 0 0 if ($content =~ /"x-page-id"\s*:\s*"(.+?)"/)
116 0 0 if $self->{'debug'}
131 0 0 if ($self->{'info'})
146 0 0 if (my($size_block) = $$content =~ /"space":\s*{([^}]*)}/s)
148 0 0 if ($1 eq 'bytes_total') { }
0 0 elsif ($1 eq 'bytes_used') { }
157 0 0 if ($$content =~ /"file_size_limit":\s*(.+?)[,\s]/)
165 0 0 if ($self->{'authToken'})
169 0 0 if ($code ne '200')
173 0 0 if $json_res->{'status'} eq 'ok'
174 0 0 if $self->login