Branch Coverage

blib/lib/Locale/TextDomain/OO/Lexicon/Role/File.pm
Criterion Covered Total %
branch 34 40 85.0


line true false branch
48 553 335 if (exists $value->{$key})
54 92 204 if (exists $value->{'msgstr_plural'})
62 1 0 exists $value->{'msgid'} ? :
1 0 exists $value->{'msgid_plural'} ? :
1 91 unless $got <= $expected
82 1 24 unless $count
84 0 24 if $count > 1
88 2 22 if ($file_star_count)
118 1 27 if ($identifier eq 'merge_lexicon')
127 0 27 if ($identifier eq 'copy_lexicon')
132 1 26 if ($identifier eq 'move_lexicon')
137 1 25 if ($identifier eq 'delete_lexicon')
150 11 10 if $self->logger
152 0 21 unless my $search_dirs = $file_lexicon_ref->{'search_dirs'}
164 3 25 if $self->_run_extra_commands($identifier, $instance, sub { return $$data[$index++]; } )
175 39 1 if (@parts == 2)
182 0 40 unless my $header_msgstr = $messages_ref->[0]{'msgstr'}
189 19 21 if $file_lexicon_ref->{'gettext_to_maketext'}
191 39 1 if $file_lexicon_ref->{'decode'}
204 19 20 if $self->logger