Condition Coverage

blib/lib/Text/Autoformat/Hang.pm
Criterion Covered Total %
condition 26 53 49.0


and 2 conditions

line l !l condition
88 0 25 $_[1] = $pre . $_[1] and last

and 3 conditions

line !l l&&!r l&&r condition
60 9 21 0 $lists_mode =~ /1|bullet/i and $_[1] =~ s/\A($hang)//
73 31 0 0 $_[1] =~ /\A($ows)($abbrev)/ and CORE::length $1 || !@vals
80 0 26 5 $lists_mode =~ /1|number/i && $_[1] =~ s/\A($num)//
9 14 3 $lists_mode =~ /1|roman/i && $_[1] =~ s/\A($rom)\b//i
9 14 0 $lists_mode =~ /1|alpha/i && $_[1] =~ s/\A($let(?!$let))//i
96 26 4 2 @vals and not $vals[-1]{'post'}
102 26 0 4 @vals == 1 and defined $vals[0]{'post'}
26 0 4 @vals == 1 and defined $vals[0]{'post'} and $vals[0]{'post'} =~ /[\.>)]/
104 0 4 0 $v->{'type'} eq 'num' and $v->{'val'} >= 1000
119 2 0 2 $prev and not $prev->empty
128 0 0 2 $prev and not $prev->empty
160 2 0 0 $_[0]{'type'} eq 'let' and $_[0]{'val'} =~ /Z/i

or 2 conditions

line l !l condition
33 0 0 $1 or 0
0 0 $2 or 0
0 0 $3 or 0
0 0 $4 or 0
89 4 2 $pre && $_[1] =~ s[\A($ows()[.:/]?[$close{$pre}][.:/]?)][] && $1 || $_[1] =~ s[\A($ows()[$sbr.:/])][] && $1 || ''
205 8 0 $level->{'type'} ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
73 0 0 0 CORE::length $1 || !@vals