Branch Coverage

blib/lib/Term/Choose/LineFold.pm
Criterion Covered Total %
branch 1 44 2.2


line true false branch
25 3 0 unless (eval { do { require Term::Choose::LineFold::XS; "Term::Choose::LineFold::XS"->VERSION("0.001"); $module = "Term::Choose::LineFold::XS"; 1 } })
54 0 0 unless (length $str)
60 0 0 if (not defined $opt->{'width'}) { }
0 0 elsif (not $opt->{'width'} =~ /^[1-9][0-9]*\z/) { }
69 0 0 if (length $_) { }
70 0 0 if (/^[0-9]+\z/) { }
78 0 0 if ($opt->{'truncate_long_tabs'} and length $_ > $max_tab_width)
87 0 0 if ($opt->{'color'})
89 0 0 if push @color, $1
91 0 0 if ($opt->{'binary_filter'} and substr($str, 0, 100) =~ /[\x00-\x08\x0B-\x0C\x0E-\x1F]/)
93 0 0 if ($opt->{'binary_filter'} == 2) { }
112 0 0 if (print_columns($line . $words[$i]) <= $opt->{'width'}) { }
117 0 0 if ($i == 0) { }
132 0 0 if ($i == $#words)
136 0 0 if ($opt->{'join'}) { }
140 0 0 if (@lines) { }
148 0 0 if (@color)
151 0 0 unless ($opt->{'join'})
152 0 0 if ($last_color)
156 0 0 if ($count)
161 0 0 unless (@color)
167 0 0 if ($opt->{'join'}) { }