Condition Coverage

blib/lib/Backblaze/B2V2Client.pm
Criterion Covered Total %
condition 4 49 8.1


and 3 conditions

line !l l&&!r l&&r condition
26 0 0 1 $application_key_id and $application_key
102 0 1 0 $self->{'current_status'} eq 'OK' and $save_to_location
116 0 0 0 $bucket_name and $file_name
132 0 0 0 $self->{'current_status'} eq 'OK' and $save_to_location
147 0 0 0 $save_to_location and -d "$save_to_location"
153 0 0 0 $self->{'b2_response'}{'X-Bz-File-Name'} and length $self->{'b2_response'}{'file_contents'}
180 0 0 0 $args{'file_location'} and -e "$args{'file_location'}"
194 0 0 0 $args{'bucket_name'} and $args{'new_file_name'}
299 0 0 0 $bucket_name and not $self->{'buckets'}{$bucket_name}
0 0 0 $bucket_name and not $self->{'buckets'}{$bucket_name} and $auto_create_bucket
456 0 0 0 $file_name and $file_id
484 0 0 0 $args{'file_location'} and -e "$args{'file_location'}"

or 2 conditions

line l !l condition
69 1 0 $self->{'b2_response'}{'recommendedPartSize'} || 104857600
200 0 0 $args{'content_type'} ||= 'b2/x-auto'
511 0 0 $args{'content_type'} ||= 'b2/x-auto'
720 0 0 $url ||= 'N/A'
721 0 0 $response_code ||= 'N/A'

or 3 conditions

line l !l&&r !l&&!r condition
691 0 0 2 $@ or $response_code ne '200'