Condition Coverage

blib/lib/HTTP/AnyUA.pm
Criterion Covered Total %
condition 26 82 31.7


and 3 conditions

line !l l&&!r l&&r condition
66 19 6 0 not defined $self->{'response_is_future'} and $self->{'backend'}
99 0 0 14 @_ == 4 and ref $args eq 'HASH'
123 0 0 0 @_ == 3 and ref $args eq 'HASH'
0 0 3 @_ == 3 and ref $args eq 'HASH'
0 0 0 @_ == 3 and ref $args eq 'HASH'
0 0 2 @_ == 3 and ref $args eq 'HASH'
0 0 0 @_ == 3 and ref $args eq 'HASH'
130 0 0 0 @_ == 4 and ref $args eq 'HASH'
150 0 0 0 @_ == 4 and ref $args eq 'HASH'
155 0 0 0 -e $file and my $mtime = (stat $file)[9]
179 0 0 0 $lm and my $mtime = HTTP::AnyUA::Util::parse_http_date($lm)
244 13 0 1 $self->response_is_future and not $self->backend->response_is_future
314 2 0 10 not $val and $self->{'backend'}
0 10 0 not $val and $self->{'backend'} and $self->backend->response_is_future

or 2 conditions

line l !l condition
80 3 23 $self->{'response_is_future'} || ''
98 6 8 $args ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
99 0 14 0 @_ == 3 or @_ == 4 and ref $args eq 'HASH'
123 1 0 0 @_ == 2 or @_ == 3 and ref $args eq 'HASH'
3 3 0 @_ == 2 or @_ == 3 and ref $args eq 'HASH'
1 0 0 @_ == 2 or @_ == 3 and ref $args eq 'HASH'
2 2 0 @_ == 2 or @_ == 3 and ref $args eq 'HASH'
1 0 0 @_ == 2 or @_ == 3 and ref $args eq 'HASH'
130 1 0 0 @_ == 3 or @_ == 4 and ref $args eq 'HASH'
150 0 0 0 @_ == 3 or @_ == 4 and ref $args eq 'HASH'
156 0 0 0 $args->{'headers'}{'if-modified-since'} ||= HTTP::AnyUA::Util::http_date($mtime)
185 0 0 0 $resp->{'success'} ||= $resp->{'status'} eq '304'
262 6 7 0 +(shift())->{'_module_loader'} ||= 'Module::Loader'->new
267 0 7 0 shift() || $self->ua