Branch Coverage

blib/lib/Text/WideChar/Util.pm
Criterion Covered Total %
branch 68 102 66.6


line true false branch
39 0 0 if ($e =~ /\n/l)
43 0 0 if $num_lines == 0
45 0 0 if $len < $l
55 0 0 if ($e =~ /\n/l)
59 0 0 if $num_lines == 0
61 0 0 if $len < $l
70 9 74 if ($_ eq "\t") { }
74 5 69 $is_mb ? :
140 0 36 unless $tw > 0
142 11 25 defined $optfli ? :
144 4 32 defined $optsli ? :
161 12 30 if (defined $optfli) { }
168 30 0 if (defined $fli) { }
175 5 37 if (defined $optsli) { }
180 9 28 if (defined $sli) { }
187 0 42 if $sliw >= $width
200 388 22 $3 ? :
201 3 407 if ($1) { }
207 3 409 if ($1) { }
224 29 402 $is_mb ? :
228 415 16 if ($wordw <= $width - $sliw or $is_cjk)
234 7 9 if ($is_mb) { }
253 79 352 if not defined $maxww or $maxww < $wordw
254 46 385 if not defined $minww or $minww > $wordw
256 389 42 $line_has_word ? :
257 357 74 if ($x_after_word <= $width) { }
259 319 38 if ($line_has_word)
260 317 2 if ($prev_ws_after)
269 18 69 if ($is_cjk)
272 2 16 if ($prev_ws_after) { }
287 4 83 if $prev_ws_after and $optkts
291 74 13 if ($sliw + $wordw <= $width) { }
306 7 35 if (defined $pbreak) { }
309 21 14 if $ptext =~ /\n[ \t]*\z/l
313 1 35 if ($opts->{'return_stats'}) { }
333 0 0 if ($which) { }
340 0 0 $is_mb ? :
341 0 0 if ($is_trunc and $w > $width) { }
345 0 0 if ($which eq 'l') { }
0 0 elsif ($which eq 'c') { }
371 25 0 $is_mb ? :
372 0 25 unless $width >= 0
373 0 25 if ($w <= $width)
374 0 0 $return_width ? :
382 0 25 if $l == 0
386 0 167 $l > length $text ? :
387 167 0 $is_mb ? :
389 120 47 if ($wres + $wl > $width) { }
399 25 142 if $l == 1 and $end > 1
400 50 92 if $l == 1
402 25 0 if ($return_width) { }