Condition Coverage

blib/lib/Apache/SharedMem.pm
Criterion Covered Total %
condition 7 82 8.5


and 3 conditions

line !l l&&!r l&&r condition
237 0 0 8 defined $$options{$name} and $$options{$name} ne ''
301 0 0 0 defined $_[0] && $_[0] ne ''
382 0 0 0 defined $_[0] && $_[0] ne ''
822 0 0 0 defined $type and $type eq LOCK_UN()
927 0 0 0 $$self{'_lock_status'} & LOCK_SH() and $type & LOCK_EX()
969 0 0 0 ref $record and ref $record eq 'HASH'
0 0 0 ref $record and ref $record eq 'HASH' and exists $$record{'map'}
976 0 0 0 exists $$record{'version'} and $$record{'version'} >= 2
1128 4 0 0 exists $ENV{'GATEWAY_INTERFACE'} and $ENV{'GATEWAY_INTERFACE'} =~ /^CGI-Perl/
1138 0 0 0 defined $Apache::Server::Starting and $Apache::Server::Starting
1241 0 0 0 defined $serialized and $serialized ne ''
1256 0 0 0 defined $_[0] && $_[0] =~ /^\d$/
1299 4 0 0 defined $_[0]{'_lock_status'} and $_[0]{'_lock_status'} & LOCK_SH() || $_[0]{'_lock_status'} & LOCK_EX()

or 2 conditions

line l !l condition
756 0 0 $self->_get_root || (return undef)
1068 0 0 $self->_init_root || (return undef)

or 3 conditions

line l !l&&r !l&&!r condition
202 0 4 0 ref $pkg || $pkg
244 0 0 0 $self->_init_namespace or $$options{'readonly'}
300 0 0 0 shift() || croak('invalide method call')
381 0 0 0 shift() || croak('invalid method call')
821 0 0 0 not defined $timeout or $timeout =~ /\D/
0 0 0 not defined $timeout or $timeout =~ /\D/ or $timeout < 0
833 0 0 0 $@ or not $rv
927 0 0 0 not defined $$self{'_lock_status'} or $$self{'_lock_status'} & LOCK_UN()
1171 4 0 0 defined $docroot or $docroot eq ''
0 0 0 -e $docroot || !(-r $docroot)
4 0 0 defined $docroot or $docroot eq '' or not -e $docroot || !(-r $docroot)
1173 4 0 0 defined $uid or $uid =~ /[^\d\-]/
1299 0 0 0 $_[0]{'_lock_status'} & LOCK_SH() || $_[0]{'_lock_status'} & LOCK_EX()