Branch Coverage

blib/lib/CHI/Driver/SharedMem.pm
Criterion Covered Total %
branch 29 40 72.5


line true false branch
205 0 96 if (not defined $self->size or $self->size == 0)
211 4 92 unless ($shm)
213 0 4 unless ($shm)
230 0 98 unless open my $fd, ">", $self->lock_file
237 0 2786 unless $self->lock_file
239 2786 0 if (my $lock = $self->lock) { }
240 1909 877 $params{'type'} eq 'read' ? :
251 2786 0 if (my $lock = $self->lock)
260 781 2786 if (defined $value)
264 0 2786 unless ($self->shm)
268 0 2786 unless (defined $size)
278 781 2690 if (defined $h)
290 3 2687 unless ($cur_size)
305 2 96 unless ($self->shmkey)
318 98 0 if (defined $^V and $^V ge "v5.14.0")
319 0 98 if ${^GLOBAL_PHASE} eq "DESTRUCT"
324 96 2 if ($self->shmkey and $self->shm)
331 2 94 if ($cur_size == 0) { }
332 2 0 if (defined $stat and $stat->nattch == 1)
361 2 94 if ($can_remove and my $lock_file = $self->lock_file)