Condition Coverage

blib/lib/Text/ANSI/Fold.pm
Criterion Covered Total %
condition 54 75 72.0


and 3 conditions

line !l l&&!r l&&r condition
304 0 0 715 &looks_like_number($width) and $width == int $width
379 1154 0 124 $room < 2 and not $opt->{'splitwide'}
380 62 46 16 $room != $width and &_startWideSpacing
401 474 458 112 $opt->{'expand'} and s/\A\t//u
411 840 6 4 $w > $room and $room != $width
431 0 0 0 $w == $room - 1 and $b =~ /\A\p{IsWideSpacing}/pu
442 469 4 0 $w > $room and $room != $width
456 657 16 42 $word_char_re and my($w2) = /\A( (?: $word_char_re \cH ? ) + )/ux
673 3 39 $word_char_re and my($w2) = /\A( (?: $word_char_re \cH ? ) + )/ux and my($lead, $w1) = $folded =~ m[ \A ## avoid CSI/OSC final char making a word ( (?: [^\e\x9b\x9d]* (?:$csi_re|$osc_re)++ ) *+ .*? ) ( (?: $word_char_re \cH ? ) + ) \z ]ux
469 0 5 34 $room + $l < $width - $p and $l + pwidth($w2) <= $width - $p
5 0 34 $room + $l < $width - $p and $l + pwidth($w2) <= $width - $p and pwidth($lead) > 0
480 119 500 96 $_ ne "" and $opt->do_runout
481 71 0 25 $folded =~ / (? (?! $reset_re) $color_re*+ ) (? (?: ($prohibition_re{'end'}) (?: \cH{1,2} \g{-1})* )+ ) \z /pux and ${^PREMATCH} ne ""
71 1 24 $folded =~ / (? (?! $reset_re) $color_re*+ ) (? (?: ($prohibition_re{'end'}) (?: \cH{1,2} \g{-1})* )+ ) \z /pux and ${^PREMATCH} ne "" and pwidth(${^PREMATCH}) > 0
1 5 19 $folded =~ / (? (?! $reset_re) $color_re*+ ) (? (?: ($prohibition_re{'end'}) (?: \cH{1,2} \g{-1})* )+ ) \z /pux and ${^PREMATCH} ne "" and pwidth(${^PREMATCH}) > 0 and (my $w = pwidth($+{'runout'})) <= $opt->{'runout'}
506 20 81 30 $m > 0 and /\A (? $color_re*+) (? $prohibition_re{'head'} ) ( \cH{1,2} \g{runin} )* # multiple strike (? (?: $erase_re* $reset_re+ $erase_re* )? ) /pux
532 685 17 13 $opt->{'padding'} and $room > 0
540 119 577 19 length $_ and my $p = $opt->{'prefix'}
590 26 80 0 length $rest and $rest eq $_

or 2 conditions

line l !l condition
253 1 0 $b // (next)
296 715 0 shift() // ""
312 715 0 $opt->{'boundary'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
255 0 1 0 $s ||= $h
258 1 0 0 $TABSTYLE{$h} || croak("${h}: invalid tabstyle")
1 0 0 $TABSTYLE{$s} || croak("${s}: invalid tabstyle")
599 4 24 0 $opt{'width'} // $obj->{'width'}