Branch Coverage

blib/lib/Term/Choose/LineFold.pm
Criterion Covered Total %
branch 1 46 2.1


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)
58 0 0 if (defined $opt and not ref $opt)
66 0 0 if (not defined $opt->{'width'}) { }
0 0 elsif (not $opt->{'width'} =~ /^[1-9][0-9]*\z/) { }
75 0 0 if (length $_) { }
76 0 0 if (/^[0-9]+\z/) { }
84 0 0 if (length $_ > $max_tab_width)
93 0 0 if ($opt->{'color'})
95 0 0 if push @color, $1
97 0 0 if ($opt->{'binary_filter'} and substr($str, 0, 100) =~ /[\x00-\x08\x0B-\x0C\x0E-\x1F]/)
99 0 0 if ($opt->{'binary_filter'} == 2) { }
118 0 0 if (print_columns($line . $words[$i]) <= $opt->{'width'}) { }
123 0 0 if ($i == 0) { }
138 0 0 if ($i == $#words)
142 0 0 if ($opt->{'join'}) { }
146 0 0 if (@lines) { }
154 0 0 if (@color)
157 0 0 unless ($opt->{'join'})
158 0 0 if ($last_color)
162 0 0 if ($count)
167 0 0 unless (@color)
173 0 0 if ($opt->{'join'}) { }