Branch Coverage

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


line true false branch
37 0 0 if ($e =~ /\n/l)
41 0 0 if $num_lines == 0
43 0 0 if $len < $l
53 0 0 if ($e =~ /\n/l)
57 0 0 if $num_lines == 0
59 0 0 if $len < $l
68 9 74 if ($_ eq "\t") { }
72 5 69 $is_mb ? :
138 0 36 unless $tw > 0
140 11 25 defined $optfli ? :
142 4 32 defined $optsli ? :
159 12 30 if (defined $optfli) { }
166 30 0 if (defined $fli) { }
173 5 37 if (defined $optsli) { }
178 9 28 if (defined $sli) { }
185 0 42 if $sliw >= $width
198 388 22 $3 ? :
199 3 407 if ($1) { }
205 3 409 if ($1) { }
222 29 402 $is_mb ? :
226 415 16 if ($wordw <= $width - $sliw or $is_cjk)
232 7 9 if ($is_mb) { }
251 79 352 if not defined $maxww or $maxww < $wordw
252 46 385 if not defined $minww or $minww > $wordw
254 389 42 $line_has_word ? :
255 357 74 if ($x_after_word <= $width) { }
257 319 38 if ($line_has_word)
258 317 2 if ($prev_ws_after)
267 18 69 if ($is_cjk)
270 2 16 if ($prev_ws_after) { }
285 4 83 if $prev_ws_after and $optkts
289 74 13 if ($sliw + $wordw <= $width) { }
304 7 35 if (defined $pbreak) { }
307 21 14 if $ptext =~ /\n[ \t]*\z/l
311 1 35 if ($opts->{'return_stats'}) { }
331 0 0 if ($which) { }
338 0 0 $is_mb ? :
339 0 0 if ($is_trunc and $w > $width) { }
343 0 0 if ($which eq 'l') { }
0 0 elsif ($which eq 'c') { }
369 25 0 $is_mb ? :
370 0 25 unless $width >= 0
371 0 25 if ($w <= $width)
372 0 0 $return_width ? :
380 0 25 if $l == 0
384 0 167 $l > length $text ? :
385 167 0 $is_mb ? :
387 120 47 if ($wres + $wl > $width) { }
397 25 142 if $l == 1 and $end > 1
398 50 92 if $l == 1
400 25 0 if ($return_width) { }