Branch Coverage

blib/lib/RingBuffer.pm
Criterion Covered Total %
branch 14 40 35.0


line true false branch
106 0 185 unless my $type = ref $self
111 0 185 unless (exists $$self{'_permitted'}{$name})
115 9 176 if (@_) { }
125 0 1 if $self->can('SUPER::DESTROY')
143 0 7 if ($next_head >= $self->ringsize)
160 0 0 if ($next_tail >= $self->size)
184 1 0 if ($$self{'buffer'} =~ /array/i) { }
245 0 7 if ($self->size == $self->ringsize) { }
248 0 0 if ($self->overwrite) { }
286 1 0 if ($self->size)
295 0 1 if ($self->tail >= $self->ringsize)
336 1 0 if ($next_tail > 0) { }
342 1 0 if ($next_tail != $self->head)
367 0 0 if ($self->head == $self->tail)
371 0 0 if ($self->head > 0) { }
394 1 0 if ($self->size)
424 0 1 if ($self->printextendedinfo)
427 0 0 if ($self->head == $r_cntr and $self->tail == $r_cntr) { }
0 0 elsif ($self->head == $r_cntr) { }
0 0 elsif ($self->tail == $r_cntr) { }