line |
true |
false |
branch |
27
|
0 |
1 |
unless ($application_key_id and $application_key) |
63
|
1 |
0 |
if ($self->{'current_status'} eq 'OK') { } |
88
|
0 |
1 |
unless ($file_id) |
103
|
0 |
1 |
if ($self->{'current_status'} eq 'OK' and $save_to_location) |
117
|
0 |
0 |
unless ($bucket_name and $file_name) |
133
|
0 |
0 |
if ($self->{'current_status'} eq 'OK' and $save_to_location) |
148
|
0 |
0 |
unless ($save_to_location and -d "$save_to_location") |
154
|
0 |
0 |
unless ($self->{'b2_response'}{'X-Bz-File-Name'} and length $self->{'b2_response'}{'file_contents'}) |
181
|
0 |
0 |
if ($args{'file_location'} and -e "$args{'file_location'}") |
189
|
0 |
0 |
unless (length $args{'file_contents'}) |
195
|
0 |
0 |
unless ($args{'bucket_name'} and $args{'new_file_name'}) |
230
|
0 |
0 |
unless ($bucket_name) |
241
|
0 |
0 |
if (ref $self->{'buckets'}{$bucket_name} ne 'HASH') |
255
|
0 |
0 |
if ($self->{'current_status'} eq 'OK') |
288
|
0 |
0 |
if ($self->{'current_status'} eq 'OK') |
300
|
0 |
0 |
if ($bucket_name and not $self->{'buckets'}{$bucket_name} and $auto_create_bucket) |
316
|
0 |
0 |
unless ($bucket_name) |
323
|
0 |
0 |
if (ref $self->{'buckets'}{$bucket_name} ne 'HASH') |
339
|
0 |
0 |
if ($self->{'current_status'} eq 'OK') |
361
|
0 |
0 |
unless ($file_id) |
367
|
0 |
0 |
if ref $self->{'file_info'}{$file_id} eq 'HASH' |
379
|
0 |
0 |
if ($self->{'current_status'} eq 'OK') |
393
|
0 |
0 |
unless ($bucket_name) |
406
|
0 |
0 |
unless ($disable_encryption) |
420
|
0 |
0 |
if ($self->{'current_status'} eq 'OK') |
439
|
0 |
0 |
unless ($bucket_name) |
468
|
0 |
0 |
unless ($file_name and $file_id) |
496
|
0 |
0 |
if ($args{'file_location'} and -e "$args{'file_location'}") { } |
511
|
0 |
0 |
if ($stat->size < $self->{'recommended_part_size'}) |
517
|
0 |
0 |
unless ($bucket_name) |
541
|
0 |
0 |
unless $large_file_id |
553
|
0 |
0 |
if ($remaining_file_size < $self->{'recommended_part_size'}) { } |
615
|
0 |
2 |
unless ($args{'url'}) |
620
|
1 |
1 |
if ($args{'authorization'}) |
628
|
0 |
2 |
if ($self->{'b2_login_error'}) |
637
|
0 |
2 |
if ($args{'url'} =~ /b2_upload_file|b2_upload_part/) { } |
|
0 |
2 |
elsif (ref $args{'post_params'} eq 'HASH') { } |
686
|
1 |
1 |
if ($response->header('X-Bz-File-Name')) { } |
|
1 |
0 |
elsif ($response_code eq '200') { } |
703
|
0 |
2 |
if ($@ or $response_code ne '200') { } |
704
|
0 |
0 |
if ($self->{'b2_response'}{'message'}) { } |
729
|
0 |
0 |
unless $error_message |
752
|
2 |
0 |
unless $self->{'errors'}[0] |