Branch Coverage

blib/lib/Mojolicious/Plugin/BootstrapPagination.pm
Criterion Covered Total %
branch 31 38 81.5


line true false branch
22 2 18 $$opts{'localize'} || $$args{'localize'} ? :
26 2 18 unless $count > 1
27 0 18 unless $opts
31 9 9 if ($class ne '')
35 3 15 exists $$opts{'query'} ? :
43 19 93 if $last and $last == $number and $start > 0 or defined $last and $last == $number and $start == 0
44 12 111 if $number <= 0 and $start > 0 or $number < 0 and $start == 0
45 4 107 if $number > $count and $start > 0 or $number >= $count and $start == 0
46 25 82 if $last and $last + 1 != $number
51 4 14 if ($actual == $start) { }
58 0 0 $number =~ /\d+/ ? :
132 0 $start > 0 ? :
60 26 106 if ($localize)
64 14 118 if ($number eq '..' and $last_num < $actual) { }
11 107 elsif ($number eq '..' and $last_num > $actual) { }
18 89 elsif ($number == $actual) { }
66 0 14 $start == 0 ? :
72 0 11 $start == 0 ? :
80 0 18 if ($actual == $count) { }