Condition Coverage

blib/lib/Apache2/SSI/URI.pm
Criterion Covered Total %
condition 50 136 36.7


and 3 conditions

line !l l&&!r l&&r condition
300 0 1 0 -e "$doc_root$doc_path" and -d _
463 106 129 0 not length $self->{'document_uri'} and $self->{'_path_info_processed'}
464 106 129 0 not length $self->{'document_uri'} and $self->{'_path_info_processed'}
535 0 147 0 scalar @_ and &Scalar::Util::reftype($_[-1]) eq 'HASH'
579 0 0 147 defined $newfile and length $newfile
644 0 0 147 defined $newfile and length $newfile
665 0 0 0 @_ and not ref $_[0]
0 0 0 @_ and not ref $_[0] and scalar(@_) % 2
678 0 0 0 ++$c <= $max_redirects and $rr->status == 'Apache2::Const::HTTP_MOVED_PERMANENTLY' || $rr->status == 'Apache2::Const::HTTP_MOVED_TEMPORARILY'
695 0 0 0 defined $rr and $rr->status == 'Apache2::Const::HTTP_MOVED_PERMANENTLY' || $rr->status == 'Apache2::Const::HTTP_MOVED_TEMPORARILY'
702 0 0 0 exists $hdrs->{'Location'} and length $hdrs->{'Location'}
732 0 0 0 defined $Nice::Try::WANTARRAY and !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
742 2 0 0 scalar @_ == 1 and not defined $_[0]
756 0 2 0 not $p->{'apache_request'} and $r
757 0 0 2 not $p->{'document_root'} and length $d
758 0 0 2 not $p->{'base_uri'} and length $b
777 0 0 338 defined $Nice::Try::WANTARRAY and !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
901 131 30 0 &Scalar::Util::blessed($path) and $path->isa('URI::file')
908 161 0 0 &Scalar::Util::blessed($doc_root) and $doc_root->isa('URI::file')
941 0 4 16 not $pathinfo and -d "$doc_root$trypath"
4 9 7 not $pathinfo and -d "$doc_root$trypath" and not -e "$doc_root$trypath/$p"
0 4 9 not $pathinfo and -e "$doc_root$trypath/$p"
999 0 0 0 &Scalar::Util::blessed($uri) and $uri->isa('URI')
1003 0 0 0 substr($uri->path, -1, 1) eq '/' and length $uri->path > 1

or 2 conditions

line l !l condition
297 1 0 $self->document_path || (return $self->error('No document path set.'))
298 1 0 $self->document_root || (return $self->error('No document root set.'))
312 154 1 (caller 1)[3] // ''
437 0 0 $r->path_info // ''
476 146 0 $self->{'document_uri'} // ''
477 146 0 $res->{'path'} // ''
479 146 0 $res->{'filepath'} // ''
481 3 143 $res->{'path_info'} // ''
483 21 125 $res->{'query_string'} // ''
500 3 0 $self->path_info // ''
572 275 2 (caller 1)[3] // ''
675 0 0 $opts->{'max_redirect'} || 10
799 8 2 (caller 1)[3] // ''
833 32 2 (caller 1)[3] // ''

or 3 conditions

line l !l&&r !l&&!r condition
73 129 0 0 $self->{'document_root'} ||= $self->env('DOCUMENT_ROOT')
74 129 0 0 $self->{'base_uri'} ||= $self->env('DOCUMENT_URI')
273 1 0 0 ref $self || $self
386 471 0 0 $self->{'document_root'} || $self->env('DOCUMENT_ROOT')
465 129 106 0 $new || $self->{'document_uri'}
537 0 0 147 $opts->{'apache_request'} || $self->apache_request
674 0 0 0 $opts->{'apache_request'} || $self->apache_request
678 0 0 0 $rr->status == 'Apache2::Const::HTTP_MOVED_PERMANENTLY' || $rr->status == 'Apache2::Const::HTTP_MOVED_TEMPORARILY'
695 0 0 0 $rr->status == 'Apache2::Const::HTTP_MOVED_PERMANENTLY' || $rr->status == 'Apache2::Const::HTTP_MOVED_TEMPORARILY'
732 0 0 0 !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
777 0 338 0 !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
899 0 161 0 $doc_root //= $self->document_root