Branch Coverage

blib/lib/Text/Quantize.pm
Criterion Covered Total %
branch 36 40 90.0


line true false branch
15 0 25 unless shift @_
24 8 351 if ($element == 0) { }
123 228 elsif ($element < 0) { }
40 6 19 if ($$options{'add_endpoints'})
41 5 1 unless (defined $$options{'minimum'} and defined $$options{'maximum'})
43 5 0 unless defined $$options{'minimum'}
44 4 1 unless defined $$options{'maximum'}
52 6 19 $$options{'add_endpoints'} ? :
58 9 132 if ($i == 0) { }
5 127 elsif ($i == -1) { }
29 98 elsif ($i < 0) { }
76 2 4 unless shift @_
97 0 69 if length $bucket > $left_width
132 0 6 wantarray ? :
145 4 17 if ($min == 0) { }
1 16 elsif ($min == 1) { }
6 10 elsif ($min < 0) { }
158 1 20 if ($max == 0) { }
2 18 elsif ($max == -1) { }
2 16 elsif ($max < 0) { }