Branch Coverage

blib/lib/IPC/SharedMem.pm
Criterion Covered Total %
branch 17 30 56.6


line true false branch
46 0 1 unless @_ == 4
51 0 1 unless defined $id
72 0 2 unless shmctl $self->id, IPC_STAT(), $data
78 0 1 unless @_ >= 1 and @_ <= 2
80 0 1 if defined $self->addr
88 0 1 unless defined $self->addr
90 1 0 if $rv
97 0 1 if $self->is_removed
99 1 0 if $rv
111 0 5 unless @_ == 3
114 3 2 if (defined $self->addr) { }
115 0 3 unless &memread(scalar $self->addr, $buf, $pos, $size)
118 0 2 unless shmread $self->id, $buf, $pos, $size
125 0 4 unless @_ == 4
127 2 2 if (defined $self->addr) { }