Condition Coverage

blib/lib/Amazon/S3/Lite.pm
Criterion Covered Total %
condition 39 99 39.3


and 3 conditions

line !l l&&!r l&&r condition
109 1 0 11 $args->{'aws_access_key_id'} and $args->{'aws_secret_access_key'}
119 0 0 1 $ENV{'AWS_ACCESS_KEY_ID'} and $ENV{'AWS_SECRET_ACCESS_KEY'}
197 3 0 23 defined $bucket and length $bucket
198 6 0 20 defined $key and length $key
236 0 0 0 length $content and not $content_is_coderef
245 0 0 0 defined $token and length $token
304 1 0 3 defined $bucket and length $bucket
305 1 0 2 defined $key and length $key
361 0 0 4 defined $bucket and length $bucket
362 0 0 4 defined $key and length $key
426 1 0 5 defined $bucket and length $bucket
427 1 0 4 defined $key and length $key
519 4 0 18 defined $args{$required} and length $args{$required}
585 1 0 7 defined $bucket and length $bucket
586 1 0 6 defined $key and length $key
609 3 0 0 builtin::blessed($data) and $data->can("read")
617 1 0 1 @st and defined $st[7]
686 1 0 2 defined $bucket and length $bucket
830 2 0 0 $response->{'content'} and $response->{'content'} =~ /<\?xml/msx

or 2 conditions

line l !l condition
27 16 0 $args //= {}
38 0 15 $args->{'host'} // "s3.amazonaws.com"
39 0 15 $args->{'secure'} // 1
40 0 15 $args->{'timeout'} // 30
228 0 0 $headers //= {}
229 0 0 $content //= ""
232 0 0 $extra //= {}
251 0 0 $content // ""
592 1 4 $options{'content_type'} // "application/octet-stream"

or 3 conditions

line l !l&&r !l&&!r condition
97 4 0 1 $creds->can($_) // $creds->can("get_$_")
176 0 0 0 $creds->get_aws_access_key_id // $creds->aws_access_key_id
0 0 0 $creds->get_aws_secret_access_key // $creds->get_aws_secret_access_key
226 0 0 0 $region //= $self->region
242 0 0 0 $self->credentials->can("get_token") // $self->credentials->can("token")
278 0 0 0 length $content or $content_is_coderef
609 2 0 3 &openhandle($data) or builtin::blessed($data) and $data->can("read")
835 0 0 0 $code or $msg