Branch Coverage

blib/lib/Text/Phonetic.pm
Criterion Covered Total %
branch 41 52 78.8


line true false branch
46 0 0 unless grep {$algorithm eq $_;} @AVAILABLE_ALGORITHMS
53 9 36 if ($class->can('_predicates') and not grep({$class eq $_;} @PREDICATES_CHECKED))
58 7 2 if ($ok) { }
73 1 18 scalar @_ == 1 && ref $_[0] eq 'HASH' ? :
78 0 19 unless (grep {$algorithm eq $_;} @AVAILABLE_ALGORITHMS)
82 13 6 unless (Class::Load::is_class_loaded($class))
84 0 13 unless ($ok)
101 132 2 if (scalar @_ == 1) { }
2 0 elsif (scalar @_ > 1) { }
103 132 0 if $self->unidecode
106 21 111 unless defined $string and not $string =~ /^\s*$/
114 1 1 wantarray ? :
124 0 18 unless defined $string1 and not $string1 =~ /^\s*$/
125 7 11 unless defined $string2 and not $string2 =~ /^\s*$/
128 2 9 if $string1 eq $string2
130 9 0 if ($self->unidecode)
135 2 7 if $string1 eq $string2
141 0 7 unless defined $value1 and defined $value2
149 2 1 if $result1 eq $result2
162 0 608 unless defined $string
163 1 607 scalar @_ == 1 && ref $_[0] eq 'ARRAY' ? :
165 81 527 if grep {$string eq $_;} @$list
172 0 6 unless ref $list1 eq 'ARRAY' and ref $list2 eq 'ARRAY'
175 1 7 unless defined $element1
177 1 12 unless defined $element2
178 3 9 if $element1 eq $element2