Condition Coverage

blib/lib/HTTP/AnyUA.pm
Criterion Covered Total %
condition 27 82 32.9


and 3 conditions

line !l l&&!r l&&r condition
66 2 24 0 not defined $self->{'response_is_future'} and $self->{'backend'}
99 0 0 15 @_ == 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 1 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 4 23 $self->{'response_is_future'} || ''
98 6 9 $args ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
99 0 15 0 @_ == 3 or @_ == 4 and ref $args eq 'HASH'
123 1 0 0 @_ == 2 or @_ == 3 and ref $args eq 'HASH'
4 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 7 7 0 +(shift())->{'_module_loader'} ||= 'Module::Loader'->new
267 0 7 0 shift() || $self->ua