Branch Coverage

blib/lib/YATT/Lite/Partial/Gettext.pm
Criterion Covered Total %
branch 16 28 57.1


line true false branch
22 5 0 if (ref $spec eq 'ARRAY') { }
24 0 5 unless my $sub = $self->can("configure_locale_$type")
49 5 3 unless my $header = $entry->[1]{''}
54 3 0 if (my $form = $xhf->{'Plural-Forms'}) { }
55 3 0 if (($nplurals, my $formula) = $form =~ /^\s*nplurals\s*=\s*(\d+)\s*; \s*plural\s*=\s*([^;]+)/x)
78 0 0 if ($use_encoding)
101 5 2 unless my $entry = $self->lang_getmsg($lang, $msgid)
103 0 2 unless $entry->dequote($entry->msgstr)
108 2 4 if (my($locale, $entry) = $self->lang_getmsg($lang, $msgid))
111 2 0 if (defined(my $hit = $hash->{$ix}))
122 0 0 unless defined $lang and $catalog = $self->{'locale_cache'}{$lang}
123 0 0 if (wantarray) { }
134 4 9 if (defined $msgid and defined $lang and $catalog = $self->{'locale_cache'}{$lang} and $msg = $catalog->[1]{$msgid}) { }
137 2 2 wantarray ? :