blib/lib/Data/Localize/Gettext/Parser.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 21 | 24 | 87.5 |
line | true | false | branch |
---|---|---|---|
23 | 0 | 11 | unless open my $fh, "<$enc", $file |
30 | 18 | 56 | if ($line =~ /^\s*$/) |
31 | 18 | 0 | if @block |
39 | 7 | 4 | if @block |
61 | 25 | 31 | if ($line =~ /^msgid\s+"(.*)"\s*$/) { } |
25 | 6 | elsif ($line =~ /^msgstr\s+"(.*)"\s*$/) { } | |
4 | 2 | elsif ($line =~ /^"(.*)"\s*$/) { } | |
2 | 0 | elsif ($line =~ /#,\s+.*fuzzy.*$/) { } | |
79 | 1 | 24 | unless length $msgstr or $self->keep_empty |
81 | 1 | 23 | if $is_fuzzy and not $self->use_fuzzy |
83 | 2 | 4 | $1 eq '\\' ? : |
4 | 6 | $1 eq 'n' ? : |