Condition Coverage

blib/lib/CGI/SSI.pm
Criterion Covered Total %
condition 28 50 56.0


and 3 conditions

line !l l&&!r l&&r condition
122 77 18 0 $self->_suspended and not $text =~ /^(?:if|else|elif|endif)\b/
529 0 1 3 not $self->_seen_true and $self->_test($expr)

or 2 conditions

line l !l condition
43 0 26 $ENV{'DOCUMENT_ROOT'} ||= ''
53 1 25 $args{'errmsg'} || '[an error occurred while processing this directive]'
1 25 $args{'sizefmt'} || 'abbrev'
2 24 $args{'timefmt'} || undef
59 1 25 $args{'MAX_RECURSIONS'} || 100
278 0 0 $uri->host || $ENV{'HTTP_HOST'} || $ENV{'SERVER_NAME'} || 'localhost'
620 0 54 $ENV{'SCRIPT_FILENAME'} || $ENV{'PATH_TRANSLATED'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
44 1 0 25 $args{'DOCUMENT_URI'} || $ENV{'SCRIPT_NAME'}
1 0 25 $args{'DOCUMENT_NAME'} || $script_name
2 0 24 $args{'DOCUMENT_ROOT'} || $ENV{'DOCUMENT_ROOT'}
62 1 25 0 $args{'COOKIE_JAR'} || 'HTTP::Cookies'->new
277 2 0 0 $uri->scheme || ($ENV{'HTTPS'} ? 'https' : 'http')
290 0 2 0 $$self{'_ua'} ||= $self->_get_ua
373 1 0 0 $uri->scheme || ($ENV{'HTTPS'} ? 'https' : 'http')
374 1 0 0 $uri->host || $ENV{'HTTP_HOST'} || $ENV{'SERVER_NAME'}
375 0 0 1 $uri->query || $ENV{'QUERY_STRING'}
387 0 1 0 $$self{'_ua'} ||= $self->_get_ua