Branch Coverage

blib/lib/Locale/TextDomain/OO/Translator.pm
Criterion Covered Total %
branch 44 64 68.7


line true false branch
24 0 36 @args == 1 ? :
26 33 3 if ($plugins)
27 0 33 unless ref $plugins eq 'ARRAY'
31 2 31 if (defined $loaded_plugins) { }
32 1 1 if length $current_plugins and $loaded_plugins ne $current_plugins
40 0 34 0 == index($plugin, '+') ? :
48 2 33 unless (defined $loaded_plugins)
95 0 9 unless my $nplurals = $lexicon->{''}{'multiplural_nplurals'}
96 0 9 unless my(@counts) = @{$count_ref;}
142 158 4 exists $lexicon->{$lexicon_key} ? :
146 0 162 $lexicon_class ? :
168 0 20 $ext_lexicon ? :
0 20 exists $$lexicon{&$maketext_msg_key()} ? :
142 20 exists $lexicon->{$msg_key} ? :
178 4 158 if ($plural_callback) { }
55 103 elsif ($is_n) { }
186 0 55 unless my $plural_code = $lexicon->{''}{'plural_code'}
187 9 46 ref $count eq 'ARRAY' ? :
192 4 51 unless (defined $msgstr_plural and length $msgstr_plural)
193 2 2 &$plural_code($count) ? :
196 4 0 $lexicon ? :
199 0 0 defined $msgctxt ? :
0 0 defined $msgid ? :
0 0 defined $msgid_plural ? :
0 4 if $self->language ne 'i-default' and $self->logger
221 90 17 exists $msg_ref->{'msgstr'} ? :
222 17 90 unless (defined $msgstr and length $msgstr)
224 17 0 $lexicon ? :
227 0 7 defined $msgctxt ? :
7 0 defined $msgid ? :
7 10 if $self->language ne 'i-default' and $self->logger
251 1 2 unless $self->filter