Branch Coverage

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


line true false branch
38 0 0 if ($res->code ne '200')
45 0 0 if ($res->decoded_content =~ /CSRF\s*=\s*\"([a-f|A-F|0-9]+)\"/) { }
0 0 elsif ($res->decoded_content =~ /CSRF:\s+\"([a-f|A-F|0-9]+)\"/) { }
69 0 0 if ($res->code ne '200')
74 0 0 if ($json->{'status'} eq 'fail')
78 0 0 unless $self->__getToken
87 0 0 if ($res->is_success)
89 0 0 if ($content =~ /\"csrf\"\s*\:\s*\"([0-9|a-z|A-Z|_]+)\"/)
91 0 0 if $self->{'debug'}
93 0 0 if ($content =~ /\"email\"\s*:\s*\"(.+?)\"/)
95 0 0 if $self->{'debug'}
99 0 0 if ($content =~ /\"BUILD\"\s*:\s*\"(.+?)\"/)
101 0 0 if $self->{'debug'}
106 0 0 if ($content =~ /\"x\-page\-id\"\s*:\s*\"(.+?)\"/)
108 0 0 if $self->{'debug'}
123 0 0 if ($self->{'info'})
138 0 0 if (my($size_block) = $$content =~ /"space":\s*{([^}]*)}/s)
140 0 0 if ($1 eq 'bytes_total') { }
0 0 elsif ($1 eq 'bytes_used') { }
149 0 0 if ($$content =~ /"file_size_limit":\s*(.+?)[,\s]/)
157 0 0 if ($self->{'authToken'})
161 0 0 if ($code ne '200')
165 0 0 if $json_res->{'status'} eq 'ok'
166 0 0 if $self->login