Branch Coverage

lib/Class/DBI/Lite/Pager.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
42 0 145 if (@_) { }
78 18 4 if ($s->{'_fetched_once'}) { }
94 2 20 unless $s->_has_more
96 16 4 if ($s->{'_fetched_once'}++)
109 10 10 if ($s->{'data_sql'}) { }
112 0 10 $s->{'order_by'} ? :
135 0 20 unless $s->has_prev
137 18 2 if $s->{'_fetched_once'}++
139 0 20 if $s->stop_item > $s->total_items
141 0 20 if $s->{'start_item'} < 0
145 10 10 if ($s->{'data_sql'}) { }
173 1 2 $s->page_number - $padding > 0 ? :
176 2 1 $s->page_number + $padding <= $s->total_pages ? :
181 3 0 if ($stop - $start < $padding * 2 + 1)
184 2 1 if ($start == 1 and $stop < $s->total_pages) { }
1 0 elsif ($stop == $s->total_pages and $start > 1) { }
207 8 32 $s->{'page_number'} == 1 ? :