Branch Coverage

blib/lib/Text/Clevery/Modifier.pm
Criterion Covered Total %
branch 55 62 88.7


line true false branch
52 1 2 $number_as_word ? :
66 1 1 unless ($count_whitespaces)
90 2 0 $time ? :
97 1 2 defined $value && length $value ? :
109 2 9 if ($format eq 'html') { }
1 8 elsif ($format eq 'htmlall') { }
3 5 elsif ($format =~ /\A ur [il] ( pathinfo )? \z/msx) { }
1 4 elsif ($format eq 'quotes') { }
1 3 elsif ($format eq 'hex') { }
1 2 elsif ($format eq 'hexentity') { }
0 2 elsif ($format eq 'decentity') { }
1 1 elsif ($format eq 'javascript') { }
1 0 elsif ($format eq 'mail') { }
0 0 elsif ($format eq 'nonstd') { }
118 1 2 if ($1)
165 1 2 unless defined $count
166 2 1 unless defined $padding
198 1 1 unless defined $padding
209 1 1 unless defined $space
216 1 2 unless defined $replace_with_space
217 2 1 $replace_with_space ? :
224 1 6 unless defined $length
225 2 5 unless defined $etc
227 1 6 if (length $str <= $length)
233 5 1 if (not $middle) { }
234 3 2 unless ($break_words)
251 0 4 unless defined $length
252 2 2 unless defined $break
254 3 1 if (not $cut) { }
258 7 62 if (length($line) + length($word) > $length and $word =~ /\S/) { }
269 3 0 if (length $line > 0)