Condition Coverage

blib/lib/Text/ANSI/BaseUtil.pm
Criterion Covered Total %
condition 73 101 72.2


and 3 conditions

line !l l&&!r l&&r condition
119 229 0 0 $is_mb and $1
153 4 112 117 $s_type and $s_type ne 's'
154 8 0 0 $prev_type and $prev_type ne $s_type
174 83 28 6 defined $c and not @s
195 83 26 3 defined $c and not @s
208 7 0 13 defined $c and $c =~ /m\z/
298 4 0 0 $crcode and $_ == 1
326 8 2 226 $j < @terms and $termst[$j] ne 'p'
356 103 4 2 $pterm =~ /\n/ and $i == $#terms
381 8 2 107 $prev_t && $prev_t eq 's'
412 1 0 2 $prev_t && $prev_t eq 's'
430 10 0 94 $line_has_word and $ws_before
456 1 15 0 $ws_before and $optkts
478 2 6 0 $line_has_word and $pad
509 6 0 1 $is_trunc and $w > $width
636 0 0 8 defined $c and $c =~ /m\z/
662 0 0 0 $pmin == $_->[0] and length $t < length $_->[1]
776 1 2 1 $i > 1 && !$savedc
782 4 0 3 defined $c and $c =~ /m\z/
792 2 0 2 $savedc and $i < @text

or 2 conditions

line l !l condition
37 3 2 &max(@lens) // 0
84 8 0 $width //= 80
85 1 7 $opts //= {}
144 229 20 $s_type //= ''
269 0 8 $opts->{'tab_width'} // 8
275 0 8 $opts->{'keep_trailing_space'} // 0
506 1 6 $padchar //= ' '

or 3 conditions

line l !l&&r !l&&!r condition
145 4 229 16 $only_code or defined $s
175 106 5 6 @s or @ch
196 107 3 2 @s or @ch
377 117 0 3 $termw <= $width - $sliw or $termt eq 'c'
426 8 11 101 not defined $maxww or $maxww < $wordw
427 8 2 110 not defined $minww or $minww > $wordw
662 0 0 0 $pmin > $_->[0] or $pmin == $_->[0] and length $t < length $_->[1]
701 0 4 5 $pos > $npos2 or $pos2 < $npos
4 0 5 $pos > $npos2 or $pos2 < $npos or not $found