Branch Coverage

blib/lib/Locale/MO/File.pm
Criterion Covered Total %
branch 35 42 83.3


line true false branch
73 40 102 if ($self->get_encoding)
74 0 40 unless my $encoder = &find_encoding(scalar $self->get_encoding)
78 40 102 if ($self->get_newline)
88 36 52 if ($self->get_encoding)
89 0 36 unless my $encoder = &find_encoding(scalar $self->get_encoding)
93 36 52 if ($self->get_newline)
105 109 33 exists $message->{$_} && defined $message->{$_} ? :
127 24 47 exists $message->{'msgctxt'} && defined $message->{'msgctxt'} && length $message->{'msgctxt'} ? :
33 38 exists $message->{'msgid_plural'} && defined $message->{'msgid_plural'} && length $message->{'msgid_plural'} ? :
138 69 0 defined $_ ? :
139 0 33 unless $message->{'msgstr_plural'}
38 33 length $msgstr ? :
153 88 8 defined $_ && length $_ ? :
162 16 32 if (@strings > 1)
167 22 26 if ($is_plural) { }
180 22 26 if ($is_plural) { }
337 0 9 unless defined $filename
347 5 4 unless ($self->get_file_handle)
353 5 0 $magic_number eq pack('N', $MAGIC_NUMBER) ? :
4 5 $magic_number eq pack('V', $MAGIC_NUMBER) ? :
370 0 9 if $revision > 0