Condition Coverage

blib/lib/Text/ANSI/Fold.pm
Criterion Covered Total %
condition 44 57 77.1


and 3 conditions

line !l l&&!r l&&r condition
320 762 298 76 $room != $width and &_startWideSpacing
1060 66 10 $room != $width and &_startWideSpacing and $room < 2
334 374 458 112 $opt->{'expand'} and s/\A\t//u
368 436 3 0 $w > $room and $room < $width
382 574 13 39 $word_char_re and my($w2) = /\A( (?: $word_char_re \cH ? ) + )/ux
587 3 36 $word_char_re and my($w2) = /\A( (?: $word_char_re \cH ? ) + )/ux and my($lead, $w1) = $folded =~ / \A ## avoid CSI final char making a word ( (?: [^\e]* $csi_re++ ) *+ .*? ) ( (?: $word_char_re \cH ? ) + ) \z /ux
395 0 5 31 $room + $l < $width - $p and $l + pwidth($w2) <= $width - $p
405 96 447 83 $_ ne "" and $opt->do_runout
406 60 0 23 $folded =~ / (? (?! $reset_re) $color_re*+ ) (? (?: ($prohibition_re{'end'}) (?: \cH{1,2} \g{-1})* )+ ) \z /pux and ${^PREMATCH} ne ""
60 5 18 $folded =~ / (? (?! $reset_re) $color_re*+ ) (? (?: ($prohibition_re{'end'}) (?: \cH{1,2} \g{-1})* )+ ) \z /pux and ${^PREMATCH} ne "" and (my $w = pwidth($+{'runout'})) <= $opt->{'runout'}
431 20 67 28 $m > 0 and /\A (? $color_re*+) (? $prohibition_re{'head'} ) ( \cH{1,2} \g{runin} )* # multiple strike (? (?: $erase_re* $reset_re+ $erase_re* )? ) /pux
453 603 11 12 $opt->{'padding'} and $room > 0
461 96 511 19 length $_ and my $p = $opt->{'prefix'}

or 2 conditions

line l !l condition
228 1 0 $b // (next)
262 626 0 shift() // ""
276 626 0 $opt->{'boundary'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
230 0 1 0 $s ||= $h
233 1 0 0 $TABSTYLE{$h} || croak("${h}: invalid tabstyle")
1 0 0 $TABSTYLE{$s} || croak("${s}: invalid tabstyle")
520 2 13 0 $opt{'width'} // $obj->{'width'}