Branch Coverage

blib/lib/TipJar/sparse/array/perl/hashbased.pm
Criterion Covered Total %
branch 30 44 68.1


line true false branch
36 3 354 if $key < 0
49 1 1 if (1 + $N == $$this[top()]) { }
50 0 1 if $N == $$this[2][-1]
52 1 0 if (defined $newtop) { }
59 0 1 if exists $$this[0]{$N}
70 1 14 if $val == $N
71 6 8 if ($val > $N) { }
83 0 6 if $N < $$this[1]
85 6 0 unless (exists $$this[0]{$N})
88 6 0 unless $$this[top()] > $N
97 0 1 if $count <= 0
99 0 1 if $before == $count
100 0 1 if ($before < $count)
119 1 0 if (exists $$this[0]{--$$this[top()]})
125 0 1 if $$this[top()] == $$this[1]
126 1 0 if $$this[2][0] == $$this[1]
145 1 4 if ($N > $$this[top()])
150 2 3 $length < 0 ? :
151 0 5 if $Stop > $$this[top()]
152 2 3 if ($Stop <= $$this[1])
166 5 0 if ($indexshift)
169 1 4 unless $$this[2][$first] == $N