Branch Coverage

blib/lib/Mojolicious/Plugin/Pager.pm
Criterion Covered Total %
branch 37 40 92.5


line true false branch
14 145 0 @args && ref $args[-1] eq 'CODE' ? :
17 15 130 if $page->{'current'}
18 3 142 if $page->{'first'}
19 7 138 if $page->{'last'}
20 13 132 if $page->{'next'}
21 13 132 if $page->{'prev'}
22 96 49 unless @classes
23 13 132 if $page->{'next'}
24 13 132 if $page->{'prev'}
32 0 16 ref $_[0] ? :
39 3 13 if ($current_page < $window_size) { }
5 8 elsif ($current_page + $pager_size - $window_size > $total_pages) { }
50 8 122 if @pages >= $pager_size
52 4 118 if $n == 1
53 8 114 if $n == $total_pages
54 16 106 if $n == $current_page
57 0 16 unless @pages
58 2 14 unless $total_pages > $pager_size
60 13 1 if $current_page > 1
61 13 1 if $current_page < $total_pages