Branch Coverage

lib/Mailru/Cloud.pm
Criterion Covered Total %
branch 24 40 60.0


line true false branch
30 1 1 $rename ? :
32 0 2 unless (-f $upload_file)
36 0 2 unless ($path =~ m[/$])
42 0 2 unless my($file_hash, $size) = $self->__upload_file($request, $upload_file)
61 2 0 if ($code eq '200')
82 1 1500 unless ($FL)
83 0 1 unless open $FL, ">$file"
89 1 1 if ($code ne '200')
92 1 0 if $FL
116 1 0 if ($code eq '200')
119 0 0 if ($code eq '400')
146 4 0 if ($code eq '200')
169 1 0 if ($code eq '200')
184 2 1 if ($res->is_success)
194 1 28 if ($item->{'weblink'})
201 1 0 if ($code eq '404')
226 0 1 if ($code ne '200')
244 0 2 unless my $sock = 'IO::Socket::SSL'->new('PeerAddr', $host, 'PeerPort', $port, 'Proto', 'tcp')
290 0 2 unless open my $FH, "<$file"
302 2 0 if ($answer[0] =~ /201/)