Branch Coverage

blib/lib/Lingua/Translit.pm
Criterion Covered Total %
branch 42 50 84.0


line true false branch
92 1 40 unless $name
95 1 39 if ($name =~ /^DIN 5008$/i)
102 0 40 unless $table
105 0 40 unless defined $table->{'name'}
106 0 40 unless defined $table->{'desc'}
107 0 40 unless defined $table->{'reverse'}
108 0 40 unless defined $table->{'rules'}
117 11 29 $table->{'reverse'} =~ /^true$/i ? :
137 2 158 unless defined $text
138 1 157 if $text eq ""
142 63 94 unless ($utf8_flag_on)
147 541 14079 if (defined $rule->{'context'}) { }
151 131 410 if (defined $c->{'before'} and not defined $c->{'after'}) { }
227 183 elsif (defined $c->{'after'} and not defined $c->{'before'}) { }
183 0 elsif (defined $c->{'before'} and defined $c->{'after'}) { }
174 94 63 if ($utf8_flag_on) { }
198 2 23 unless defined $text
199 1 22 if $text eq ""
202 0 22 unless $self->{'reverse'}
206 19 3 unless ($utf8_flag_on)
211 226 1589 if (defined $rule->{'context'}) { }
215 78 148 if (defined $c->{'before'} and not defined $c->{'after'}) { }
23 125 elsif (defined $c->{'after'} and not defined $c->{'before'}) { }
125 0 elsif (defined $c->{'before'} and defined $c->{'after'}) { }
238 3 19 if ($utf8_flag_on) { }