| blib/lib/Mojolicious/Plugin/BootstrapPagination.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| condition | 47 | 65 | 72.3 | 
| line | !l | l&&!r | l&&r | condition | 
|---|---|---|---|---|
| 43 | 30 | 93 | 19 | $last and $last == $number | 
| 123 | 0 | 19 | $last and $last == $number and $start > 0 | |
| 30 | 93 | 0 | defined $last and $last == $number | |
| 123 | 0 | 0 | defined $last and $last == $number and $start == 0 | |
| 44 | 111 | 0 | 12 | $number <= 0 and $start > 0 | 
| 111 | 0 | 0 | $number < 0 and $start == 0 | |
| 45 | 107 | 0 | 4 | $number > $count and $start > 0 | 
| 89 | 18 | 0 | $number >= $count and $start == 0 | |
| 46 | 18 | 64 | 25 | $last and $last + 1 != $number | 
| 64 | 107 | 11 | 14 | $number eq '..' and $last_num < $actual | 
| 107 | 0 | 11 | $number eq '..' and $last_num > $actual | 
| line | l | !l | condition | 
|---|---|---|---|
| 17 | 4 | 0 | $args ||= {} | 
| 28 | 13 | 5 | $$opts{'round'} || $$args{'round'} || 4 | 
| 29 | 2 | 16 | $$opts{'param'} || $$args{'param'} || 'page' | 
| 30 | 9 | 9 | $$opts{'class'} || $$args{'class'} || '' | 
| 34 | 12 | 6 | $$opts{'outer'} || $$args{'outer'} || 2 | 
| 35 | 6 | 9 | $$args{'query'} || '' | 
| 36 | 4 | 14 | ($$opts{'start'} // $$args{'start'}) // 1 | 
| line | l | !l&&r | !l&&!r | condition | 
|---|---|---|---|---|
| 22 | 0 | 2 | 18 | $$opts{'localize'} || $$args{'localize'} | 
| 0 | 2 | 0 | $$opts{'localize'} || $$args{'localize'} | |
| 36 | 4 | 0 | 14 | $$opts{'start'} // $$args{'start'} | 
| 43 | 19 | 0 | 123 | $last and $last == $number and $start > 0 or defined $last and $last == $number and $start == 0 | 
| 44 | 12 | 0 | 111 | $number <= 0 and $start > 0 or $number < 0 and $start == 0 | 
| 45 | 4 | 0 | 107 | $number > $count and $start > 0 or $number >= $count and $start == 0 |