Condition Coverage

blib/lib/Apache/ASP.pm
Criterion Covered Total %
condition 80 191 41.9


and 2 conditions

line l !l condition
1481 0 16 0 $$global_asa{'exists'} and $global_asa->ScriptOnEnd

and 3 conditions

line !l l&&!r l&&r condition
207 0 13 3 $status != 500 and defined $$response{'Status'}
13 3 0 $status != 500 and defined $$response{'Status'} and $$response{'Status'} != 302
318 12 0 6 $SrandPid and $SrandPid == $$
333 0 0 0 $r->can('filter_input') and $r->can('get_handlers')
493 0 0 1 $$tied{'writes'} and $tied->Size > $$self{'cache_size'}
640 0 0 23 length $file < 1024 and not $file =~ /^GLOB/
0 0 23 length $file < 1024 and not $file =~ /^GLOB/ and -e $file
705 36 0 0 $$self{'compile_includes'} and $$self{'GlobalASA'}{'exists'}
811 0 0 8 $file_exists and $parse_file
844 34 0 2 %includes and $$self{'pod_comments'}
900 2 35 1 $check_static_file and not $$data =~ /<%.*?%>/s
1150 0 0 0 -e $file and not -d _
1160 0 2 22 -e $path and not -d _
1231 23 4 0 $compiled and not $$self{'stat_scripts'}
1238 23 0 4 $compiled and $$compiled{'mtime'} > $mtime
1310 1 13 22 $data and $subid
14 2 20 $data and $subid and not $no_cache
1543 0 0 0 $self->Error("could not do cache ${cache_name}: $!") && return
1549 0 0 48 ref $key && $key =~ /SCALAR/
1558 11 0 6 defined $expires and $expires =~ /^\-?\d+$/
1580 16 0 7 defined $expires and $expires =~ /^\-?\d+$/
16 6 1 defined $expires and $expires =~ /^\-?\d+$/ and $expires != $$meta{'Expires'}
1613 0 23 0 defined $$meta{'ServerID'} and $$ ne $ServerPID
23 0 0 defined $$meta{'ServerID'} and $$ ne $ServerPID and $$meta{'ServerID'} ne $ServerID
15 4 4 $$meta{'Timeout'} and $$meta{'Timeout'} <= time
13 4 2 defined $last_modified and $last_modified >= $$meta{'Creation'}
1678 0 0 0 length $$xsl_data and length $$xml_data
1852 0 0 0 $NetConfig{'smtp_hosts'} and ($NetConfig{'smtp_hosts'}[0] || '') eq $$self{'mail_host'}
1866 0 0 0 not defined $args{'Debug'} and defined $$mail{'Debug'}
1916 0 0 0 $$mail{'Content-Type'} and not $$mail{'MIME-Version'}

or 2 conditions

line l !l condition
174 16 0 0 $filename ||= $r->filename
260 16 2 $filename ||= $r->filename
262 10 8 $1 || '.'
275 7 11 &get_dir_config($dir_config, 'Global') || '.'
279 1 17 &get_dir_config($dir_config, 'Debug') || 0
372 0 18 &config($self, 'IncludesDir') || ''
528 12 0 $INC{'Apache/ASP/Share/CORE.pm'} || die(q[can't find path for $INC{'Apache/ASP/Share/CORE.pm'}])
787 0 0 $args ||= ''
984 0 0 $args ||= ''
997 0 2 $args ||= ''
1067 0 0 $args ||= ''
1245 0 0 $$includes{$k} || 0
1360 16 19 0 $package ||= $$self{'GlobalASA'}{'package'}
1361 22 13 $subid ||= ''
1541 1 0 &config($self, 'CacheDB') || 'MLDBM::Sync::SDBM_File'
1581 1 0 $$meta{'Expires'} || ''
1606 8 0 $$meta{'Expires'} || 0
1665 0 0 &config($self, 'XSLTParser') || 'XML::XSLT'
1852 0 0 $NetConfig{'smtp_hosts'}[0] || ''
1872 0 0 &config($self, 'Debug') || 0
1899 0 0 $$mail{'From'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
176 0 0 16 not -e $filename or -d _
227 0 0 16 $$self{'filter'} or $status == 500
0 16 0 $$self{'filter'} or $status == 500 or $r->isa('Apache::ASP::CGI')
239 0 0 0 ref $_[0] or $_[0] eq 'Apache::ASP'
255 18 0 0 eval {
478 1 0 0 &config($self, 'CacheSize') || $CacheSize
598 0 0 0 $inode_stat[0] or $inode_stat[1]
782 0 0 8 defined $args or $$self{'compile_includes'}
1228 16 11 0 $package || $$self{'GlobalASA'}{'package'}
1292 13 21 0 $include_ref || $include
1300 0 1 0 $include_ref || $include
1346 0 0 18 $file =~ m[^/] or $file =~ /^.:/
1350 0 0 18 $dir =~ m[^/] or $dir =~ /^.:/
1447 0 0 16 $$self{'stat_inc_match'} or $$self{'stat_inc'}
1540 1 0 0 &config($self, 'CacheDir') || $$self{'state_dir'}
1543 1 0 0 Apache::ASP::State::new($self, $cache_name, 'cache') || $self->Error("could not do cache ${cache_name}: $!") && return
1802 0 0 0 $$self{'last_time'} || $time
1856 0 0 0 $$mail{'From'} ||= &config($self, 'MailFrom')