Condition Coverage

blib/lib/Mojolicious/Plugin/BootstrapPagination.pm
Criterion Covered Total %
condition 42 56 75.0


and 3 conditions

line !l l&&!r l&&r condition
39 15 33 9 $last and $last == $number
48 0 9 $last and $last == $number and $start > 0
15 33 0 defined $last and $last == $number
48 0 0 defined $last and $last == $number and $start == 0
40 40 0 8 $number <= 0 and $start > 0
40 0 0 $number < 0 and $start == 0
41 38 0 2 $number > $count and $start > 0
31 7 0 $number >= $count and $start == 0
42 7 22 9 $last and $last + 1 != $number
55 38 4 5 $number eq '..' and $last_num < $actual
38 0 4 $number eq '..' and $last_num > $actual

or 2 conditions

line l !l condition
17 1 0 $args ||= {}
24 4 3 $$opts{'round'} || 4
25 1 6 $$opts{'param'} || 'page'
26 1 6 $$opts{'class'} || ''
30 3 4 $$opts{'outer'} || 2
31 1 6 $$opts{'query'} || ''
32 1 6 $$opts{'start'} // 1

or 3 conditions

line l !l&&r !l&&!r condition
39 9 0 48 $last and $last == $number and $start > 0 or defined $last and $last == $number and $start == 0
40 8 0 40 $number <= 0 and $start > 0 or $number < 0 and $start == 0
41 2 0 38 $number > $count and $start > 0 or $number >= $count and $start == 0