Branch Coverage

blib/lib/Mojolicious/Plugin/BootstrapPagination.pm
Criterion Covered Total %
branch 26 32 81.2


line true false branch
22 1 8 unless $count > 1
23 1 7 unless $opts
27 1 7 if ($class ne '')
39 9 37 if $last and $last == $number and $start > 0 or defined $last and $last == $number and $start == 0
40 8 45 if $number <= 0 and $start > 0 or $number < 0 and $start == 0
41 2 43 if $number > $count and $start > 0 or $number >= $count and $start == 0
42 11 32 if $last and $last + 1 != $number
47 2 6 if ($actual == $start) { }
54 0 0 $number =~ /\d+/ ? :
54 0 $start > 0 ? :
55 6 48 if ($number eq '..' and $last_num < $actual) { }
5 43 elsif ($number eq '..' and $last_num > $actual) { }
8 35 elsif ($number == $actual) { }
57 0 6 $start == 0 ? :
63 0 5 $start == 0 ? :
71 0 8 if ($actual == $count) { }