Branch Coverage

lib/Data/Scroller.pm
Criterion Covered Total %
branch 18 34 52.9


line true false branch
33 0 2 unless $self->_init(@_)
55 0 1 if $max_value <= $increment
61 1 0 if $selected > 0
74 0 1 if ($start == $set_end and $set_end < $max_display) { }
0 1 elsif ($start == $set_start and $set_start >= $page_increment) { }
88 1 5 if $value >= $max_value
95 0 5 if ($selected == $value)
98 0 0 if ($value > 0)
111 1 0 unless ($selected == $page_last)
115 1 0 if ($next < $max_value)
119 1 0 if ($selected > 0)
148 1 0 if ($start <= $inc) { }
0 0 elsif ($start > $inc and $set_end < $start + $inc - 1) { }
156 1 0 if ($start < $inc + 1) { }
172 4 1 $val == int $val ? :
185 2 0 unless (defined $max_display and length $max_display)
191 1 1 unless (defined $selected and $selected =~ /\d+/)