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
302 0 1 0 -e "$doc_root$doc_path" and -d _
466 107 129 0 not length $self->{'document_uri'} and $self->{'_path_info_processed'}
467 107 129 0 not length $self->{'document_uri'} and $self->{'_path_info_processed'}
538 0 147 0 scalar @_ and &Scalar::Util::reftype($_[-1]) eq 'HASH'
582 0 0 147 defined $newfile and length $newfile
671 0 0 147 defined $newfile and length $newfile
692 0 0 0 @_ and not ref $_[0]
0 0 0 @_ and not ref $_[0] and scalar(@_) % 2
705 0 0 0 ++$c <= $max_redirects and $rr->status == 'Apache2::Const::HTTP_MOVED_PERMANENTLY' || $rr->status == 'Apache2::Const::HTTP_MOVED_TEMPORARILY'
722 0 0 0 defined $rr and $rr->status == 'Apache2::Const::HTTP_MOVED_PERMANENTLY' || $rr->status == 'Apache2::Const::HTTP_MOVED_TEMPORARILY'
729 0 0 0 exists $hdrs->{'Location'} and length $hdrs->{'Location'}
759 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')
769 2 0 0 scalar @_ == 1 and not defined $_[0]
783 0 2 0 not $p->{'apache_request'} and $r
784 0 0 2 not $p->{'document_root'} and length $d
785 0 0 2 not $p->{'base_uri'} and length $b
804 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')
930 131 30 0 &Scalar::Util::blessed($uri_path) and $uri_path->isa('URI::file')
939 161 0 0 &Scalar::Util::blessed($doc_root) and $doc_root->isa('URI::file')
973 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"
1032 0 0 0 &Scalar::Util::blessed($uri) and $uri->isa('URI')
1036 0 0 0 substr($uri->path, -1, 1) eq '/' and length $uri->path > 1

or 2 conditions

line l !l condition
299 1 0 $self->document_path || (return $self->error('No document path set.'))
300 1 0 $self->document_root || (return $self->error('No document root set.'))
314 154 1 (caller 1)[3] // ''
440 0 0 $r->path_info // ''
479 146 0 $self->{'document_uri'} // ''
480 146 0 $res->{'path'} // ''
482 146 0 $res->{'filepath'} // ''
484 3 143 $res->{'path_info'} // ''
486 21 125 $res->{'query_string'} // ''
503 3 0 $self->path_info // ''
575 275 2 (caller 1)[3] // ''
702 0 0 $opts->{'max_redirect'} || 10
826 8 2 (caller 1)[3] // ''
860 32 2 (caller 1)[3] // ''

or 3 conditions

line l !l&&r !l&&!r condition
75 129 0 0 $self->{'document_root'} ||= $self->env('DOCUMENT_ROOT')
76 129 0 0 $self->{'base_uri'} ||= $self->env('DOCUMENT_URI')
275 1 0 0 ref $self || $self
389 618 0 0 $self->{'document_root'} || $self->env('DOCUMENT_ROOT')
468 129 107 0 $new || $self->{'document_uri'}
540 0 0 147 $opts->{'apache_request'} || $self->apache_request
701 0 0 0 $opts->{'apache_request'} || $self->apache_request
705 0 0 0 $rr->status == 'Apache2::Const::HTTP_MOVED_PERMANENTLY' || $rr->status == 'Apache2::Const::HTTP_MOVED_TEMPORARILY'
722 0 0 0 $rr->status == 'Apache2::Const::HTTP_MOVED_PERMANENTLY' || $rr->status == 'Apache2::Const::HTTP_MOVED_TEMPORARILY'
759 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')
804 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')
926 0 161 0 $doc_root //= $self->document_root