Branch Coverage

lib/Text/PO.pm
Criterion Covered Total %
branch 191 1002 19.0


line true false branch
31 4 0 eval q[DateTime::TimeZone->new( name => 'local' );] ? :
98 0 0 if ($self->_is_a($_[0], 'Text::PO::Element')) { }
0 0 elsif (scalar @_ == 1 and ref $_[0] eq 'HASH') { }
0 0 elsif (not @_ % 2) { }
118 0 0 unless @_ % 2
122 0 0 unless length $id
127 0 0 ref $msgid ? :
128 0 0 if ($thisId eq $id)
165 0 8 if $e->is_meta or not length $e->msgid
166 1 7 ref $msgid ? :
169 1 7 if ($e->plural) { }
174 2 0 ref $msgstr->[$i] ? :
180 1 6 ref $msgstr ? :
188 1 7 if $e->plural and $e->msgid_plural
189 8 0 unless (scalar @{$ref->{'comment'} = $e->comment;})
193 8 0 unless (length($ref->{'context'} = $e->context))
197 8 0 unless (scalar @{$ref->{'flags'} = $e->flags;})
201 5 3 unless (length($ref->{'reference'} = $e->reference))
211 0 4 if exists $opts->{$t}
213 0 1 if exists $opts->{'sort'}
214 0 1 if ($INC{'threads.pm'} and not exists $INC{'forks.pm'})
219 0 0 if not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::TRY ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if defined $Nice::Try::LAST_VAL
0 1 if ($Nice::Try::WANTARRAY) { }
1 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 1 if (defined $Nice::Try::WANT and length $Nice::Try::WANT) { }
0 1 length $@ ? :
1 0 unless &Scalar::Util::blessed($@)
0 0 if ($Nice::Try::HAS_CATCH)
0 1 if ($Nice::Try::DIED)
222 0 0 if not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::CATCH ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 if (defined $Nice::Try::WANT and length $Nice::Try::WANT) { }
0 0 if $@
0 1 if (defined $Nice::Try::CATCH_DIED)
0 0 if (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__NEXT__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__LAST__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__REDO__') { }
0 0 elsif (defined $Nice::Try::BREAK and $Nice::Try::BREAK eq 'return') { }
0 0 if ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 1 $Nice::Try::WANTARRAY ? :
0 1 if (defined $Nice::Try::WANT and length $Nice::Try::WANT) { }
1 0 if (not defined $Nice::Try::BREAK or $Nice::Try::BREAK eq "return")
0 0 scalar @Nice::Try::VOID > 1 ? :
1 0 if (defined $Nice::Try::WANTARRAY || defined $Nice::Try::BREAK && $Nice::Try::BREAK eq 'return' and !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')) { }
0 0 elsif (scalar @Nice::Try::VOID and !&Scalar::Util::blessed($Nice::Try::VOID[0]) || &Scalar::Util::blessed($Nice::Try::VOID[0]) && !$Nice::Try::VOID[0]->isa('Nice::Try::SENTINEL')) { }
0 0 if ($Nice::Try::BREAK eq 'next') { }
0 0 elsif ($Nice::Try::BREAK eq 'last') { }
0 0 elsif ($Nice::Try::BREAK eq 'redo') { }
0 0 if (defined $Nice::Try::BREAK)
0 0 scalar @Nice::Try::LAST_VAL > 1 ? :
230 0 2 if (@_)
247 2 0 unless exists $ENV{'LANGUAGE'} or exists $ENV{'LANG'}
248 0 0 $ENV{'LANGUAGE'} || $ENV{'LANG'} ? :
255 0 0 unless length $str
257 0 0 unless $enc
258 0 0 if ($INC{'threads.pm'} and not exists $INC{'forks.pm'})
260 0 0 if $enc eq "utf8"
263 0 0 if not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::TRY ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if defined $Nice::Try::LAST_VAL
0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 if (defined $Nice::Try::WANT and length $Nice::Try::WANT) { }
0 0 length $@ ? :
0 0 unless &Scalar::Util::blessed($@)
0 0 if ($Nice::Try::HAS_CATCH)
0 0 if ($Nice::Try::DIED)
266 0 0 if not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::CATCH ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 if (defined $Nice::Try::WANT and length $Nice::Try::WANT) { }
0 0 if $@
0 0 if (defined $Nice::Try::CATCH_DIED)
0 0 if (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__NEXT__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__LAST__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__REDO__') { }
0 0 elsif (defined $Nice::Try::BREAK and $Nice::Try::BREAK eq 'return') { }
0 0 if ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 $Nice::Try::WANTARRAY ? :
0 0 if (defined $Nice::Try::WANT and length $Nice::Try::WANT) { }
0 0 if (not defined $Nice::Try::BREAK or $Nice::Try::BREAK eq "return")
0 0 scalar @Nice::Try::VOID > 1 ? :
0 0 if (defined $Nice::Try::WANTARRAY || defined $Nice::Try::BREAK && $Nice::Try::BREAK eq 'return' and !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')) { }
0 0 elsif (scalar @Nice::Try::VOID and !&Scalar::Util::blessed($Nice::Try::VOID[0]) || &Scalar::Util::blessed($Nice::Try::VOID[0]) && !$Nice::Try::VOID[0]->isa('Nice::Try::SENTINEL')) { }
0 0 if ($Nice::Try::BREAK eq 'next') { }
0 0 elsif ($Nice::Try::BREAK eq 'last') { }
0 0 elsif ($Nice::Try::BREAK eq 'redo') { }
0 0 if (defined $Nice::Try::BREAK)
0 0 scalar @Nice::Try::LAST_VAL > 1 ? :
275 1 0 if (@_) { }
278 0 1 unless &Scalar::Util::openhandle($fh)
286 0 1 if lc $enc eq "utf-8"
287 0 1 unless $fh->binmode(":$enc")
290 1 0 if (my $header = $self->header)
292 0 1 unless $fh->print(join("\n", @$header))
295 1 0 if (length $domain)
297 0 1 unless $fh->print(qq[\n#\n# domain "$domain"])
299 0 1 unless $fh->print("\n\n")
302 1 0 if (scalar @$metaKeys)
304 0 1 unless $fh->printf("msgid \"\"\n")
305 0 1 unless $fh->printf("msgstr \"\"\n")
310 0 11 if (not exists $self->{'meta'}{$k2} and length $Text::PO::DEF_META->{$k})
315 0 11 unless $fh->printf("\"%s: %s\\n\"\n", $self->normalise_meta($k), $self->meta($k))
317 0 1 unless $fh->print("\n")
321 0 8 if $e->is_meta or not length $e->msgid
322 0 8 if ($e->po ne $self)
324 0 0 if warnings::enabled()
326 0 8 unless $fh->print($e->dump, "\n")
327 0 8 unless $fh->print("\n")
340 0 1 unless $self->_is_a($elem, "Text::PO::Element")
345 0 1 unless length $elem->msgid
348 1 0 if ($opts->{'msgid_only'} and $e->msgid eq $elem->msgid or $e->msgid eq $elem->msgid and $e->msgstr eq $elem->msgstr)
351 0 1 if (length $elem->context) { }
353 0 0 if ($elem->context eq $e->context)
376 1 7 ref $msgid ? :
377 2 6 ref $msgstr ? :
402 54 5 if (@_)
404 4 50 if ($self->_is_hash($_[0])) { }
50 0 elsif (scalar @_ == 1) { }
0 0 elsif (not @_ % 2) { }
431 31 3 if (index($k, "-") != -1)
445 1 2 if (@_)
448 0 1 unless $self->_is_array($ref)
458 0 3 unless scalar @$data
475 9 0 if not $opts->{'encoding'} and $self->encoding
486 45 1 if (scalar @res)
499 0 3 if (&Scalar::Util::reftype($this) eq 'GLOB') { }
502 0 0 unless &Scalar::Util::openhandle($io)
522 13 2 if (/^\S+/) { }
0 4 elsif ($ignoring_leading_blanks and /^[[:blank:]\h]*$/) { }
531 3 12 unless /^\#+/
532 2 10 if (/^\#+[[:blank:]\h]*domain[[:blank:]]+\"([^\"]+)\"/) { }
547 2 1 if length $header
560 3 125 if (not $foundFirstLine and /^\S/)
564 21 107 if (/^[[:blank:]]*$/) { }
0 107 elsif (/^\#\.[[:blank:]]*(.*?)$/) { }
9 98 elsif (/^\#\:[[:blank:]]+(.*?)$/) { }
0 98 elsif (/^\#\,[[:blank:]]+(.*?)$/) { }
0 98 elsif (/^\#+[[:blank:]]+(.*?)$/) { }
22 76 elsif (/^msgid[[:blank:]]+"(.*?)"$/) { }
3 73 elsif (/^msgid_plural[[:blank:]]+"(.*?)"[[:blank:]]*$/) { }
2 71 elsif (/^msgctxt[[:blank:]]+"(.*?)"[[:blank:]]*$/) { }
20 51 elsif (/^msgstr[[:blank:]]+"(.*?)"[[:blank:]]*$/) { }
8 43 elsif (/^msgstr\[(\d+)\][[:blank:]]+"(.*?)"[[:blank:]]*$/) { }
43 0 elsif (/^[[:blank:]]*"(.*?)"[[:blank:]]*$/) { }
566 21 0 if ($foundFirstLine)
569 0 21 if (scalar @$elem > 1 and not length $e->msgid and length $e->msgstr and length $elem->[-1]->msgid and not length $elem->[-1]->msgstr) { }
579 0 21 if (++$$seen{$e->id} > 1)
587 18 3 if $self->encoding
591 3 18 if (scalar @$elem == 1)
601 33 0 if ($s =~ /^([^\x00-\x1f\x80-\xff :=]+):[[:blank:]]*(.*?)$/)
606 3 30 if ($k eq "content-type")
608 3 0 if ($v =~ /\bcharset=\s*([-\w]+)/i)
613 3 0 if lc $enc eq "utf-8"
615 0 3 if ($INC{'threads.pm'} and not exists $INC{'forks.pm'})
617 3 0 $enc eq 'utf8' ? :
619 2 0 if not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::TRY ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 2 if defined $Nice::Try::LAST_VAL
0 3 if ($Nice::Try::WANTARRAY) { }
1 2 elsif (defined $Nice::Try::WANTARRAY) { }
0 3 if (defined $Nice::Try::WANT and length $Nice::Try::WANT) { }
0 3 length $@ ? :
3 0 unless &Scalar::Util::blessed($@)
0 0 if ($Nice::Try::HAS_CATCH)
0 3 if ($Nice::Try::DIED)
622 0 0 if not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::CATCH ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 if (defined $Nice::Try::WANT and length $Nice::Try::WANT) { }
0 0 if $@
0 3 if (defined $Nice::Try::CATCH_DIED)
0 0 if (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__NEXT__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__LAST__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__REDO__') { }
0 0 elsif (defined $Nice::Try::BREAK and $Nice::Try::BREAK eq 'return') { }
0 0 if ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 $Nice::Try::WANTARRAY ? :
0 0 if (defined $Nice::Try::WANT and length $Nice::Try::WANT) { }
0 0 if (not defined $Nice::Try::BREAK or $Nice::Try::BREAK eq "return")
0 0 scalar @Nice::Try::VOID > 1 ? :
0 3 if (defined $Nice::Try::WANTARRAY || defined $Nice::Try::BREAK && $Nice::Try::BREAK eq 'return' and !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')) { }
0 3 elsif (scalar @Nice::Try::VOID and !&Scalar::Util::blessed($Nice::Try::VOID[0]) || &Scalar::Util::blessed($Nice::Try::VOID[0]) && !$Nice::Try::VOID[0]->isa('Nice::Try::SENTINEL')) { }
0 0 if ($Nice::Try::BREAK eq 'next') { }
0 0 elsif ($Nice::Try::BREAK eq 'last') { }
0 0 elsif ($Nice::Try::BREAK eq 'redo') { }
0 3 if (defined $Nice::Try::BREAK)
0 3 scalar @Nice::Try::LAST_VAL > 1 ? :
627 3 0 if (scalar keys %$meta)
653 0 0 if $c
658 0 0 if (not $self->meta->length and $c =~ /^domain[[:blank:]\h]+\"(.*?)\"/) { }
669 18 4 if length $1
680 3 0 if length $1
696 2 0 if length $1
701 15 5 if length $1
706 8 0 if (length $2)
716 43 0 if ($e->can($sub)) { }
718 43 0 if length $1
727 0 0 if warnings::enabled()
730 3 0 unless $fh_was_open
731 3 0 if (scalar @$elem)
733 2 1 if $elem->[-1] ne $e and length $e->msgid and ++$$seen{$e->msgid} < 2
734 3 0 if $elem->[0]->is_meta
746 0 4 unless ($strp)
762 0 2 unless defined $s and length $s
763 0 2 @_ ? :
768 4 2 defined $_ ? :
783 2 0 if ($attribute =~ /^[a-zA-Z][a-zA-Z0-9\_\-]+$/ and length $attribute <= 255)
785 2 0 if ($value =~ /^[a-zA-Z][a-zA-Z0-9\_\-]+$/ and length $value <= 255)
799 0 0 if ($self->{'use_json'} and -e "$this.json" || $this =~ /\.json$/) { }
801 0 0 -e "$this.json" ? :
808 0 0 if ($INC{'threads.pm'} and not exists $INC{'forks.pm'})
812 0 0 if not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::TRY ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if defined $Nice::Try::LAST_VAL
0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 if (defined $Nice::Try::WANT and length $Nice::Try::WANT) { }
0 0 length $@ ? :
0 0 unless &Scalar::Util::blessed($@)
0 0 if ($Nice::Try::HAS_CATCH)
0 0 if ($Nice::Try::DIED)
815 0 0 if not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::CATCH ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 if (defined $Nice::Try::WANT and length $Nice::Try::WANT) { }
0 0 if $@
0 0 if (defined $Nice::Try::CATCH_DIED)
0 0 if (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__NEXT__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__LAST__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__REDO__') { }
0 0 elsif (defined $Nice::Try::BREAK and $Nice::Try::BREAK eq 'return') { }
0 0 if ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 $Nice::Try::WANTARRAY ? :
0 0 if (defined $Nice::Try::WANT and length $Nice::Try::WANT) { }
0 0 if (not defined $Nice::Try::BREAK or $Nice::Try::BREAK eq "return")
0 0 scalar @Nice::Try::VOID > 1 ? :
0 0 if (defined $Nice::Try::WANTARRAY || defined $Nice::Try::BREAK && $Nice::Try::BREAK eq 'return' and !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')) { }
0 0 elsif (scalar @Nice::Try::VOID and !&Scalar::Util::blessed($Nice::Try::VOID[0]) || &Scalar::Util::blessed($Nice::Try::VOID[0]) && !$Nice::Try::VOID[0]->isa('Nice::Try::SENTINEL')) { }
0 0 if ($Nice::Try::BREAK eq 'next') { }
0 0 elsif ($Nice::Try::BREAK eq 'last') { }
0 0 elsif ($Nice::Try::BREAK eq 'redo') { }
0 0 if (defined $Nice::Try::BREAK)
0 0 scalar @Nice::Try::LAST_VAL > 1 ? :
825 0 0 unless $self->parse($this)
835 2 0 if ($self->{'use_json'} and -e "$this.json" || $this =~ /\.json$/) { }
837 0 2 -e "$this.json" ? :
844 0 2 if ($INC{'threads.pm'} and not exists $INC{'forks.pm'})
848 0 0 if not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::TRY ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if defined $Nice::Try::LAST_VAL
0 2 if ($Nice::Try::WANTARRAY) { }
2 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 2 if (defined $Nice::Try::WANT and length $Nice::Try::WANT) { }
0 2 length $@ ? :
2 0 unless &Scalar::Util::blessed($@)
0 0 if ($Nice::Try::HAS_CATCH)
0 2 if ($Nice::Try::DIED)
851 0 0 if not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::CATCH ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 if (defined $Nice::Try::WANT and length $Nice::Try::WANT) { }
0 0 if $@
0 2 if (defined $Nice::Try::CATCH_DIED)
0 0 if (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__NEXT__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__LAST__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__REDO__') { }
0 0 elsif (defined $Nice::Try::BREAK and $Nice::Try::BREAK eq 'return') { }
0 0 if ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 $Nice::Try::WANTARRAY ? :
0 0 if (defined $Nice::Try::WANT and length $Nice::Try::WANT) { }
0 0 if (not defined $Nice::Try::BREAK or $Nice::Try::BREAK eq "return")
0 0 scalar @Nice::Try::VOID > 1 ? :
0 2 if (defined $Nice::Try::WANTARRAY || defined $Nice::Try::BREAK && $Nice::Try::BREAK eq 'return' and !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')) { }
0 2 elsif (scalar @Nice::Try::VOID and !&Scalar::Util::blessed($Nice::Try::VOID[0]) || &Scalar::Util::blessed($Nice::Try::VOID[0]) && !$Nice::Try::VOID[0]->isa('Nice::Try::SENTINEL')) { }
0 0 if ($Nice::Try::BREAK eq 'next') { }
0 0 elsif ($Nice::Try::BREAK eq 'last') { }
0 0 elsif ($Nice::Try::BREAK eq 'redo') { }
0 2 if (defined $Nice::Try::BREAK)
0 2 scalar @Nice::Try::LAST_VAL > 1 ? :
853 0 2 if length $ref->{'domain'} and not length $self->domain
855 2 0 if ($ref->{'meta_keys'}) { }
0 0 elsif ($ref->{'meta'}) { }
864 2 0 if ($ref->{'meta'})
876 2 0 if (scalar @$meta_keys)
893 2 14 if ($def->{'msgid_plural'})
897 2 14 if (ref $def->{'msgstr'} eq 'ARRAY') { }
908 0 16 if $def->{'comment'}
909 0 16 if $def->{'context'}
910 0 16 if $def->{'flags'}
911 6 10 if $def->{'reference'}
912 0 16 if $self->encoding
926 0 2 if (@_) { }
934 0 0 if $self->{'plural'} and scalar @{$self->{'plural'};}
937 2 0 if ($pluralDef)
939 2 0 if ($pluralDef =~ /^[[:blank:]\h]*nplurals[[:blank:]\h]*=[[:blank:]\h]*(\d+)[[:blank:]\h]*\;[[:blank:]\h]*plural[[:blank:]\h]*=[[:blank:]\h]*(.*?)\;?$/i) { }
967 0 20 unless length $str
982 0 0 unless defined $rv
983 0 0 unless $rv
988 0 0 if ($elems->[$i] eq $elem)
1008 0 0 if scalar @_ and @_ % 2 || !(@_ % 2) && ref $_[1] eq 'HASH'
1010 0 0 unless length $this
1011 0 0 unless ($this)
1014 0 0 if ($fh = $self->source->handle) { }
0 0 elsif (my $file = $self->source->file) { }
1016 0 0 if $self->_can_write_fh($fh)
1020 0 0 if -e $file and -w $file
1023 0 0 unless $this
1025 0 0 unless $self->dump($fh)
1030 0 0 if (&Scalar::Util::reftype($this) eq 'GLOB') { }
0 0 elsif (-l $this) { }
0 0 elsif (-e $this) { }
1032 0 0 unless &Scalar::Util::openhandle($this)
1033 0 0 unless $self->_can_write_fh($this)
1042 0 0 unless (-f $this)
1055 0 0 unless $self->dump($fh)
1065 0 0 unless &Scalar::Util::openhandle($fh)
1077 0 0 unless ($self->exists($e, {"msgid_only", 1}))
1080 0 0 if $removedObj
1088 0 0 unless ($po->exists($e, {"msgid_only", 1}))
1095 0 0 unless $fh->seek(0, 0)
1097 0 0 unless $po->dump($fh)
1108 0 89 unless length $str
1133 0 0 if ($flags & 3 & 3)
1144 0 4 if (@_) { }
1147 0 0 if (ref $v and $self->_is_a($v, "DateTime"))
1162 0 4 unless (defined $meta and length $meta)
1174 0 21 if (@_)
1217 0 2 unless length $value
1228 0 0 unless (defined $self->{'original'} and length $self->{'original'})
1231 0 0 if (defined $self->{'value'} and length $self->{'value'})
1233 0 0 unless ($self->{'value'} =~ /^$Text::PO::HeaderValue::TYPE_REGEXP$/)
1241 0 0 if ($self->{'params'} and ref $self->{'params'} eq "HASH")
1246 0 0 unless ($params->[$i] =~ /^$Text::PO::HeaderValue::TOKEN_REGEXP$/)
1250 0 0 if (length $string > 0)
1268 2 0 if (@_)
1282 0 0 if ($str =~ /^$Text::PO::HeaderValue::TOKEN_REGEXP$/)
1287 0 0 if (length $str > 0 and not $str =~ /^$Text::PO::HeaderValue::TEXT_REGEXP$/)