Condition Coverage

blib/lib/Apache2/SSI/SharedMem.pm
Criterion Covered Total %
condition 27 77 35.0


and 3 conditions

line !l l&&!r l&&r condition
38 0 0 15 $Apache2::SSI::SharedMem::Config{'extensions'} =~ /$SUPPORTED_RE/m and not $^O =~ /^(?:Android|cygwin|dos|MSWin32|os2|VMS|riscos)/i
211 0 0 2 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')
276 6 0 0 defined $timeout and $timeout =~ /^\d+$/
301 0 6 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')
506 1 12 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')
644 0 7 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')

or 2 conditions

line l !l condition
234 130 0 $opts->{'mode'} || 438
279 6 0 $self->semid || (return $self->error('No semaphore id set yet.'))
333 0 64 $opts->{'mode'} //= ''
334 0 64 $opts->{'key'} //= ''
400 64 0 $self->new('key', $opts->{'key'} || $self->key, 'debug', $self->debug, 'mode', $self->mode) || (return)
438 0 0 $self->semid || (return $self->error('No semaphore set yet. You must open the shared memory first to remove semaphore.'))
447 0 0 $self->size || 1024
448 0 0 shmget(IPC_PRIVATE(), $size, S_IRWXU() | S_IRWXG() | S_IRWXO()) || (return $self->error("Unable to generate a share memory key: $!"))
459 13 0 $_[1] || $self->size || 65536
500 0 0 length $buffer || '0E0'
515 0 2 length $_[0] || '0E0'
520 0 9 $len || '0E0'
631 7 0 int $self->size || 65536

or 3 conditions

line l !l&&r !l&&!r condition
211 2 0 0 !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
301 0 0 6 !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
347 0 0 64 $opts->{'mode'} eq 'w' or $opts->{'key'} =~ s/^>//
0 0 64 $opts->{'mode'} eq 'r' or $opts->{'key'} =~ s/^<//
395 0 0 0 $opts->{'key'} || $self->key
483 0 11 2 $first_char eq '"' or $first_char eq '{'
11 0 2 $first_char eq '"' or $first_char eq '{' or $first_char eq '['
506 0 0 12 !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
644 0 0 7 !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
671 0 0 128 not defined $key or $key eq ''
733 0 0 0 ref $this || $this