Branch Coverage

blib/lib/Log/Report/Lexicon/PO.pm
Criterion Covered Total %
branch 78 108 72.2


line true false branch
29 0 15 unless defined($self->{'msgid'} = delete $args->{'msgid'})
41 13 2 if defined $args->{'references'}
57 2 1 unless @_
59 1 0 if (my $m = $self->{'msgstr'})
61 1 0 if defined $m and not ref $m
72 25 13 unless ($self->{'plural'})
73 6 19 if @_ == 2
78 1 12 @_ ? :
84 26 0 unless @_
93 0 21 ref $_[0] eq 'ARRAY' ? :
94 15 6 unless defined $line
100 6 15 if defined $comment
107 26 0 unless @_
116 0 20 ref $_[0] eq 'ARRAY' ? :
117 15 5 unless defined $line
122 5 15 if defined $auto
129 0 39 if (@_)
141 0 33 unless @_
144 12 20 ref $_[0] eq 'ARRAY' ? :
1 32 @_ > 1 ? :
167 0 0 unless $keep->{$fn}
174 12 1 unless $_[0]{'msgid'} eq ''
177 29 0 @_ ? :
182 0 2 if @_ == 1 and not ref $_[0]
185 0 0 ref $_[0] eq 'ARRAY' ? :
2 0 @_ > 1 ? :
202 12 2 if ($flag eq 'fuzzy') { }
0 2 elsif ($flag =~ /^no-(.*)-format$/) { }
2 0 elsif ($flag =~ /^(.*)-format$/) { }
226 41 65 if (s/^\#(.)\s?//) { }
36 29 elsif (s/^\s*(\w+)\s+//) { }
6 23 elsif (s/^\s*msgstr\[(\d+)\]\s*//) { }
23 0 elsif (/^\s*\"/) { }
227 6 35 if ($1 =~ /\s/) { }
3 32 elsif ($1 eq '.') { }
18 14 elsif ($1 eq ':') { }
14 0 elsif ($1 eq ',') { }
241 18 18 if ($cmd eq 'msgid') { }
2 16 elsif ($cmd eq 'msgid_plural') { }
16 0 elsif ($cmd eq 'msgstr') { }
0 0 elsif ($cmd eq 'msgctxt') { }
268 23 0 if (defined $last) { }
281 0 18 unless defined $self->{'msgid'}
293 1 24 if (defined $comment and length $comment)
299 5 20 if (defined $auto and length $auto)
306 24 1 $msgid eq '' || @refs ? :
315 14 11 $self->{'fuzzy'} ? :
318 0 0 $self->{'format'}{$_} ? :
320 14 11 if @flags
324 0 25 if (defined $msgctxt and length $msgctxt)
330 19 6 ref $msgstr ? :
332 7 18 if (defined $plural) { }
339 0 7 if (defined $nplurals and @msgstr > $nplurals)
351 0 18 if @msgstr > 1