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
27 0 0 1 $application_key_id and $application_key
103 0 1 0 $self->{'current_status'} eq 'OK' and $save_to_location
117 0 0 0 $bucket_name and $file_name
133 0 0 0 $self->{'current_status'} eq 'OK' and $save_to_location
148 0 0 0 $save_to_location and -d "$save_to_location"
154 0 0 0 $self->{'b2_response'}{'X-Bz-File-Name'} and length $self->{'b2_response'}{'file_contents'}
181 0 0 0 $args{'file_location'} and -e "$args{'file_location'}"
195 0 0 0 $args{'bucket_name'} and $args{'new_file_name'}
300 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
457 0 0 0 $file_name and $file_id
485 0 0 0 $args{'file_location'} and -e "$args{'file_location'}"

or 2 conditions

line l !l condition
70 1 0 $self->{'b2_response'}{'recommendedPartSize'} || 104857600
201 0 0 $args{'content_type'} ||= 'b2/x-auto'
512 0 0 $args{'content_type'} ||= 'b2/x-auto'
721 0 0 $url ||= 'N/A'
722 0 0 $response_code ||= 'N/A'

or 3 conditions

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