Branch Coverage

lib/Badger/Utils.pm
Criterion Covered Total %
branch 49 72 68.0


line true false branch
86 102 0 unless $helper->[2]
106 82 656 if &blessed($_[1])
110 7 88 unless not ref $_[0]
116 6 5 &falselike($_[0]) ? :
120 12 10 !$_[0] || $_[0] =~ /^(0|off|no|none|false)$/i ? :
132 2 15 @_ && ref $_[0] eq 'HASH' ? :
141 1 2 @_ && ref $_[0] eq 'HASH' ? :
148 3 0 defined $_ ? :
154 1 3 unless @info
180 3 45 defined $3 ? :
190 2 1 if (defined $$args[$n - 1]) { }
191 2 0 unless defined $format
234 2 17 $text =~ /\|/ ? :
250 0 0 if ($total + $length > 74 or $words[0] eq '\\n') { }
251 0 0 if $words[0] eq "\\n"
261 0 0 if @line
303 18 36 if (@frags) { }
320 54 0 wantarray ? :
330 0 73 if ($name =~ /(ss|sh|ch|x)$/) { }
3 70 elsif ($name =~ s/([^aeiou])y$//) { }
70 0 elsif ($name =~ /([^s\d\W])$/) { }
346 0 19 @_ == 1 && ref $_[0] eq 'ARRAY' ? :
351 19 0 if (@items == 1)
357 0 19 unless &numlike($n)
358 16 3 $n > $#items ? :
359 0 19 if $i < 0
368 0 19 @_ ? :
396 0 3 unless defined $list and length $list
398 2 1 if (not ref $list) { }
1 0 elsif (ref $list eq 'ARRAY') { }
429 0 4 if (not $_[0]) { }
4 0 elsif (ref $_[0] eq 'HASH') { }
452 0 3 if (not $_[0]) { }
3 0 elsif (ref $_[0] eq 'HASH') { }
478 3 7 if ($into and ref $into eq 'HASH' and ref $value eq 'HASH') { }
502 1 2 $rel =~ m[^/] ? :