blib/lib/Mojolicious/Plugin/BootstrapPagination.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 42 | 56 | 75.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
39 | 16 | 37 | 9 | $last and $last == $number |
53 | 0 | 9 | $last and $last == $number and $start > 0 | |
16 | 37 | 0 | defined $last and $last == $number | |
53 | 0 | 0 | defined $last and $last == $number and $start == 0 | |
40 | 45 | 0 | 8 | $number <= 0 and $start > 0 |
45 | 0 | 0 | $number < 0 and $start == 0 | |
41 | 43 | 0 | 2 | $number > $count and $start > 0 |
35 | 8 | 0 | $number >= $count and $start == 0 | |
42 | 8 | 24 | 11 | $last and $last + 1 != $number |
55 | 43 | 5 | 6 | $number eq '..' and $last_num < $actual |
43 | 0 | 5 | $number eq '..' and $last_num > $actual |
line | l | !l | condition |
---|---|---|---|
17 | 1 | 0 | $args ||= {} |
24 | 5 | 3 | $$opts{'round'} || 4 |
25 | 1 | 7 | $$opts{'param'} || 'page' |
26 | 1 | 7 | $$opts{'class'} || '' |
30 | 4 | 4 | $$opts{'outer'} || 2 |
31 | 1 | 7 | $$opts{'query'} || '' |
32 | 2 | 6 | $$opts{'start'} // 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
39 | 9 | 0 | 53 | $last and $last == $number and $start > 0 or defined $last and $last == $number and $start == 0 |
40 | 8 | 0 | 45 | $number <= 0 and $start > 0 or $number < 0 and $start == 0 |
41 | 2 | 0 | 43 | $number > $count and $start > 0 or $number >= $count and $start == 0 |