Condition Coverage

blib/lib/Text/Autoformat/Hang.pm
Criterion Covered Total %
condition 15 53 28.3


and 2 conditions

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

and 3 conditions

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

or 3 conditions

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