Branch Coverage

blib/lib/Backblaze/B2V2Client.pm
Criterion Covered Total %
branch 0 72 0.0


line true false branch
26 0 0 unless ($application_key_id and $application_key)
62 0 0 if ($self->{'current_status'} eq 'OK') { }
86 0 0 unless ($file_id)
101 0 0 if ($self->{'current_status'} eq 'OK' and $save_to_location)
115 0 0 unless ($bucket_name and $file_name)
131 0 0 if ($self->{'current_status'} eq 'OK' and $save_to_location)
146 0 0 unless ($save_to_location and -d "$save_to_location")
152 0 0 unless ($self->{'b2_response'}{'X-Bz-File-Name'} and length $self->{'b2_response'}{'file_contents'})
179 0 0 if ($args{'file_location'} and -e "$args{'file_location'}")
187 0 0 unless (length $args{'file_contents'})
193 0 0 unless ($args{'bucket_name'} and $args{'new_file_name'})
228 0 0 unless ($bucket_name)
239 0 0 if (ref $self->{'buckets'}{$bucket_name} ne 'HASH')
253 0 0 if ($self->{'current_status'} eq 'OK')
286 0 0 if ($self->{'current_status'} eq 'OK')
298 0 0 if ($bucket_name and not $self->{'buckets'}{$bucket_name} and $auto_create_bucket)
314 0 0 unless ($bucket_name)
321 0 0 if (ref $self->{'buckets'}{$bucket_name} ne 'HASH')
337 0 0 if ($self->{'current_status'} eq 'OK')
359 0 0 unless ($file_id)
365 0 0 if ref $self->{'file_info'}{$file_id} eq 'HASH'
377 0 0 if ($self->{'current_status'} eq 'OK')
391 0 0 unless ($bucket_name)
407 0 0 if ($self->{'current_status'} eq 'OK')
426 0 0 unless ($bucket_name)
455 0 0 unless ($file_name and $file_id)
482 0 0 unless ($args{'url'})
487 0 0 if ($args{'authorization'})
495 0 0 if ($self->{'b2_login_error'})
504 0 0 if ($args{'url'} =~ /b2_upload_file/) { }
0 0 elsif (ref $args{'post_params'} eq 'HASH') { }
553 0 0 if ($response->header('X-Bz-File-Name')) { }
0 0 elsif ($response_code eq '200') { }
570 0 0 if ($@ or $response_code ne '200') { }
571 0 0 if ($self->{'b2_response'}{'message'}) { }
596 0 0 unless $error_message