Condition Coverage

blib/lib/Number/Continuation.pm
Criterion Covered Total %
condition 26 30 86.6


and 3 conditions

line !l l&&!r l&&r condition
50 11 39 47 $constructed{'begin'} and $constructed{'middle'}
50 23 24 $constructed{'begin'} and $constructed{'middle'} and $constructed{'end'}
58 78 3 16 $prev_number > $current_number and $i != 0
81 10 6 $prev_number > $current_number and $i != 0 and not $have_neg_continuation
84 0 50 0 defined $next_number and $next_number - $current_number == 1 || $current_number - $next_number == 1

or 2 conditions

line l !l condition
31 1 6 $$opts{'delimiter'} ||= ''
32 5 2 $$opts{'range'} ||= '-'
33 5 2 $$opts{'separator'} ||= ','
45 97 0 $nums[$i - 1] || 0
46 97 0 $nums[$i] || 0
47 90 7 $nums[$i + 1] || 0

or 3 conditions

line l !l&&r !l&&!r condition
84 19 4 27 $next_number - $current_number == 1 || $current_number - $next_number == 1