Condition Coverage

lib/Amazon/S3.pm
Criterion Covered Total %
condition 11 206 5.3


and 3 conditions

line !l l&&!r l&&r condition
158 0 3 0 not $self->_signer and $self->cache_signer
227 0 0 0 $secret and $encryption_key
274 0 0 0 $response and $response->is_success
442 0 0 0 $self->region and $self->region ne $Amazon::S3::DEFAULT_REGION
478 0 0 0 $region and $region eq $Amazon::S3::DEFAULT_REGION
551 0 0 0 ref $args[0] and builtin::reftype($args[0]) eq "HASH"
721 0 0 0 defined $r->{'IsTruncated'} && scalar $r->{'IsTruncated'} eq 'true'
1074 0 0 0 $path =~ m[\A([^/?]+)([^?]+)(.*)]msx and $self->dns_bucket_names
0 0 0 $path =~ m[\A([^/?]+)([^?]+)(.*)]msx and $self->dns_bucket_names and is_domain_bucket($1)
1161 0 0 0 @args > 1 and !@args % 2
1272 0 0 0 $code eq "PermanentRedirect" and $endpoint
1275 0 0 0 $code eq "AuthorizationHeaderMalformed" and $region
1366 0 0 0 $response->code =~ /\A3/msx and defined $location
1532 0 0 0 not $xml_hr and $Amazon::S3::EVAL_ERROR
1707 0 0 0 $query_params{'partNumber'} and $query_params{'uploadId'}

or 2 conditions

line l !l condition
465 0 0 $conf->{'headers'} // {}
471 0 0 $headers->{'x-amz-object-ownership'} //= "ObjectWriter"
502 0 0 $headers //= {}
596 0 0 $headers // {}
619 0 0 $parameters->{'uri_params'} // {}
648 0 0 $conf //= {}
655 0 0 $conf->{'list-type'} // 1
684 0 0 $headers // {}
783 0 0 $conf ||= {}
794 0 0 $conf ||= {}
872 0 0 $conf ||= {}
894 0 0 $headers // {}
1057 0 0 $headers //= {}
1059 0 0 $metadata //= {}
1624 0 0 $headers //= {}
1625 0 0 $metadata //= {}

or 3 conditions

line l !l&&r !l&&!r condition
76 0 3 0 $options{'timeout'} //= $Amazon::S3::DEFAULT_TIMEOUT
77 0 3 0 $options{'secure'} //= $Amazon::S3::TRUE
78 0 3 0 $options{'host'} //= $Amazon::S3::DEFAULT_HOST
79 0 3 0 $options{'dns_bucket_names'} //= $Amazon::S3::TRUE
80 0 3 0 $options{'cache_signer'} //= $Amazon::S3::FALSE
81 0 3 0 $options{'retry'} //= $Amazon::S3::FALSE
82 0 3 0 $options{'express'} //= $Amazon::S3::FALSE
98 0 3 0 $options{'log_level'} //= $Amazon::S3::DEFAULT_LOG_LEVEL
156 1 2 0 $self->_region // $Amazon::S3::DEFAULT_REGION
248 0 0 0 not ref $bucket or ref !($bucket =~ /Amazon::S3::Bucket/msx)
252 0 0 0 $bucket->get_location_constraint // $Amazon::S3::DEFAULT_REGION
260 0 0 0 $ENV{'AWS_REGION'} || $ENV{'AWS_DEFAULT_REGION'}
280 0 0 0 $region || $Amazon::S3::DEFAULT_REGION
356 0 0 0 $self->_region // $Amazon::S3::EMPTY
393 0 0 0 not $r or $self->errstr
404 0 0 0 not ref $buckets or builtin::reftype($buckets) ne "ARRAY"
413 0 0 0 $verify_region // $Amazon::S3::FALSE
470 0 0 0 $headers->{'x-amz-acl'} //= $conf->{'acl_short'}
474 0 0 0 $conf->{'location_constraint'} // $conf->{'region'}
476 0 0 0 $region //= $self->region
501 0 0 0 $region //= $Amazon::S3::EMPTY
523 0 0 0 $region || $availability_zone
561 0 0 0 $region or $verify_region
589 0 0 0 $conf->{'region'} || $self->get_bucket_location($bucket)
700 0 0 0 not $r or $self->errstr
721 0 0 0 $r->{'Prefix'} // $Amazon::S3::EMPTY
0 0 0 $r->{$marker} // $Amazon::S3::EMPTY
0 0 0 $r->{$next_marker} // $Amazon::S3::EMPTY
813 0 0 0 $response->{'next_marker'} || $response->{'keys'}[-1]{'key'}
903 0 0 0 not $r or $self->errstr
976 0 0 0 $self->region || $self->get_default_region
1049 0 0 0 $region // $self->_region
1061 0 0 0 $data //= $Amazon::S3::EMPTY
1062 0 0 0 $headers->{'Content-Length'} //= length $data
1112 0 0 0 not $url or $Amazon::S3::EVAL_ERROR
1442 0 0 0 $region // $self->region
1548 0 0 0 ref $src or $src =~ /^[[:space:]]*
1658 0 0 0 $lk eq "content-md5" or $lk eq "content-type"
0 0 0 $lk eq "content-md5" or $lk eq "content-type" or $lk eq "date"
0 0 0 $lk eq "content-md5" or $lk eq "content-type" or $lk eq "date" or $lk =~ /^$Amazon::S3::AMAZON_HEADER_PREFIX/msx
1667 0 0 0 $interesting_headers{'content-type'} ||= $Amazon::S3::EMPTY
1668 0 0 0 $interesting_headers{'content-md5'} ||= $Amazon::S3::EMPTY
1761 0 0 0 $region or $verify_region