Condition Coverage

blib/lib/Apache2/SSI/SharedMem.pm
Criterion Covered Total %
condition 28 80 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 $Apache2::SSI::SharedMem::Config{'useithreads'}
0 0 15 $Apache2::SSI::SharedMem::Config{'extensions'} =~ /$SUPPORTED_RE/m and not $Apache2::SSI::SharedMem::Config{'useithreads'} and not $^O =~ /^(?:Android|cygwin|dos|MSWin32|os2|VMS|riscos)/i
214 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')
279 6 0 0 defined $timeout and $timeout =~ /^\d+$/
304 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')
509 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')
647 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
237 130 0 $opts->{'mode'} || 438
282 6 0 $self->semid || (return $self->error('No semaphore id set yet.'))
336 0 64 $opts->{'mode'} //= ''
337 0 64 $opts->{'key'} //= ''
403 64 0 $self->new('key', $opts->{'key'} || $self->key, 'debug', $self->debug, 'mode', $self->mode) || (return)
441 0 0 $self->semid || (return $self->error('No semaphore set yet. You must open the shared memory first to remove semaphore.'))
450 0 0 $self->size || 1024
451 0 0 shmget(IPC_PRIVATE(), $size, S_IRWXU() | S_IRWXG() | S_IRWXO()) || (return $self->error("Unable to generate a share memory key: $!"))
462 13 0 $_[1] || $self->size || 65536
503 0 0 length $buffer || '0E0'
518 0 2 length $_[0] || '0E0'
523 0 9 $len || '0E0'
634 7 0 int $self->size || 65536

or 3 conditions

line l !l&&r !l&&!r condition
214 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')
304 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')
350 0 0 64 $opts->{'mode'} eq 'w' or $opts->{'key'} =~ s/^>//
0 0 64 $opts->{'mode'} eq 'r' or $opts->{'key'} =~ s/^<//
398 0 0 0 $opts->{'key'} || $self->key
486 0 11 2 $first_char eq '"' or $first_char eq '{'
11 0 2 $first_char eq '"' or $first_char eq '{' or $first_char eq '['
509 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')
647 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')
674 0 0 128 not defined $key or $key eq ''
736 0 0 0 ref $this || $this