Branch Coverage

blib/lib/Algorithm/SlidingWindow/Dynamic.pm
Criterion Covered Total %
branch 9 38 23.6


line true false branch
12 0 3 exists $args{'alloc'} ? :
22 0 3 if (exists $args{'values'})
23 0 0 if ref $args{'values'} ne "ARRAY"
32 0 0 $_[0]{'size'} == 0 ? :
36 0 0 if $self->{'size'} == 0
42 0 0 if $self->{'size'} == 0
51 0 0 unless defined $index
52 0 0 unless $index =~ /\A\d+\z/
53 0 0 if $index >= $self->{'size'}
62 0 0 if $n == 0
86 0 11 unless @items
103 0 6 if $self->{'size'} == 0
112 1 5 if $self->{'size'} == 0
118 0 0 if $self->{'size'} == 0
127 0 0 if $self->{'size'} == 0
134 0 0 if ($self->{'size'} == 0)
157 11 0 if $need <= $cap
175 0 3 unless defined $n
176 0 3 unless $n =~ /\A[1-9]\d*\z/