blib/lib/Template/Plugin/Bootstrap/Pagination.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 23 | 30 | 76.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
24 | 6 | 4 | 0 | defined $arg_ref and ref $arg_ref ne 'HASH' |
54 | 1 | 0 | 11 | blessed $pager and $pager->isa('Data::Page') |
153 | 1 | 0 | 4 | blessed $pager and $pager->isa('Data::Page') |
line | l | !l | condition |
---|---|---|---|
27 | 4 | 6 | $arg_ref ||= {} |
94 | 10 | 0 | $$arg_ref{'version'} || 2 |
127 | 1 | 0 | {'mini', ' pagination-sm', 'small', ' pagination-sm', 'large', ' pagination-lg'}->{$$arg_ref{'size'}} || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
71 | 4 | 2 | 9 | $page == $first_page or $page == $last_page |
6 | 5 | 4 | $page == $first_page or $page == $last_page or abs $page - $current_page <= $$arg_ref{'siblings'} | |
7 | 0 | 4 | $page == $first_page or $page == $last_page or abs $page - $current_page <= $$arg_ref{'siblings'} or $last_page <= 2 * $$arg_ref{'siblings'} + 1 | |
1 | 1 | 2 | $first_page + 1 == $page or $last_page - 1 == $page | |
207 | 2 | 0 | 32 | not defined $uri or $uri eq '' |