Condition Coverage

lib/Text/PO/MO.pm
Criterion Covered Total %
condition 32 85 37.6


and 3 conditions

line !l l&&!r l&&r condition
204 1 0 0 not $self->{'use_cache'} || $opts->{'no_cache'} and -e $file
1 0 0 not $self->{'use_cache'} || $opts->{'no_cache'} and -e $file and ref $self->{'_cache'} eq "ARRAY"
0 0 0 not $self->{'use_cache'} || $opts->{'no_cache'} and -e $file and ref $self->{'_cache'} eq "ARRAY" and $self->{'_last_modified'}
0 0 0 not $self->{'use_cache'} || $opts->{'no_cache'} and -e $file and ref $self->{'_cache'} eq "ARRAY" and $self->{'_last_modified'} and [stat $file]->[9] <= $self->{'_last_modified'}
278 0 0 1 defined $hash->{''} and $hash->{''} =~ m[Content-Type:[[:blank:]\h]*text/plain;[[:blank:]\h]*charset[[:blank:]\h]*=[[:blank:]\h]*(?<quote>["'])?(?<encoding>[\w\-]+)\g{quote}?]is
321 0 0 1 $self->_is_object($po) and $po->isa("Text::PO")
337 0 0 1 $meta_keys and not $meta_keys->is_empty
344 0 0 1 defined $v and length $v
362 0 0 1 $elems and ref $elems
368 0 8 1 $e->can("is_meta") and $e->is_meta
370 0 8 0 $e->can("is_include") and $e->is_include
381 7 0 1 defined $msgid_plural and length $msgid_plural
387 0 8 0 defined $ctx and length $ctx
457 0 0 1 defined $file and length "$file"

or 2 conditions

line l !l condition
56 1 0 $ref->{''} // ""
215 1 0 $self->new_file($file) || (return $self->error(qq[Unable to open mo file "$file": ], $self->error))
217 1 0 $f->open('<') || (return $self->pass_error($f->error))
326 0 1 $opts->{'encoding'} //= ""
327 1 0 $opts->{'encoding'} || $self->encoding || $self->default_encoding || 'utf-8'
351 1 0 $self->encode({'msgid', '', 'msgstr', $header}, $enc) || (return $self->pass_error)
375 0 8 $e->context || ''
397 1 0 $e->msgstr // ""
436 8 0 $self->encode({'msgid', $key, 'msgstr', $val}, $enc) || (return $self->pass_error)
462 1 0 $self->new_file($file) || (return $self->pass_error)
463 1 0 $f->open('>', {'binmode', 'raw', 'autoflush', 1}) || (return $self->pass_error($f->error))

or 3 conditions

line l !l&&r !l&&!r condition
132 1 1 0 shift @_ || $self->encoding
163 9 0 0 shift @_ || $self->encoding
202 0 1 0 $opts->{'file'} || $self->file
204 1 0 0 $self->{'use_cache'} || $opts->{'no_cache'}
273 1 0 0 $self->auto_decode or $opts->{'auto_decode'}
287 0 0 0 $self->default_encoding || $opts->{'default_encoding'}
456 0 1 0 $opts->{'file'} || $self->file