Branch Coverage

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


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