Condition Coverage

lib/Text/PO/MO.pm
Criterion Covered Total %
condition 28 139 20.1


and 2 conditions

line l !l condition
113 0 1 not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
116 0 0 not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
150 9 0 not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
153 0 0 not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL

and 3 conditions

line !l l&&!r l&&r condition
102 1 0 0 $INC{'threads.pm'} and not exists $INC{'forks.pm'}
113 1 0 0 defined $Nice::Try::WANT and length $Nice::Try::WANT
116 0 0 0 defined $Nice::Try::WANT and length $Nice::Try::WANT
1 0 0 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 0 defined $Nice::Try::WANT and length $Nice::Try::WANT
0 0 0 defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq "__NEXT__"
0 0 0 defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq "__LAST__"
0 0 0 defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq "__REDO__"
0 0 0 defined $Nice::Try::BREAK and $Nice::Try::BREAK eq "return"
1 0 0 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')
131 9 0 0 $INC{'threads.pm'} and not exists $INC{'forks.pm'}
150 9 0 0 defined $Nice::Try::WANT and length $Nice::Try::WANT
153 0 0 0 defined $Nice::Try::WANT and length $Nice::Try::WANT
0 9 0 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 0 defined $Nice::Try::WANT and length $Nice::Try::WANT
0 0 0 defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq "__NEXT__"
0 0 0 defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq "__LAST__"
0 0 0 defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq "__REDO__"
0 0 0 defined $Nice::Try::BREAK and $Nice::Try::BREAK eq "return"
0 9 0 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')
167 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'}
275 0 0 1 $self->_is_object($po) and $po->isa("Text::PO")
357 1 0 0 exists $opts->{'file'} && length $opts->{'file'}
401 1 0 0 exists $opts->{'file'} and defined $opts->{'file'}
1 0 0 exists $opts->{'file'} and defined $opts->{'file'} and $opts->{'file'} eq "-"

or 2 conditions

line l !l condition
178 1 0 'IO::File'->new("<$file") || (return $self->error(qq[Unable to open mo file "$file": $!]))
278 0 1 $opts->{'encoding'} //= ""
279 1 0 $opts->{'encoding'} || $self->encoding || $self->default_encoding || 'utf-8'
366 1 0 'IO::File'->new($file, $mode) || (return $self->error(qq[Unable to open file "$file" in write mode: $!]))

or 3 conditions

line l !l&&r !l&&!r condition
99 0 1 0 shift @_ || $self->encoding
116 0 0 1 defined $Nice::Try::WANTARRAY || defined $Nice::Try::BREAK && $Nice::Try::BREAK eq 'return'
0 0 0 !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
0 0 0 not defined $Nice::Try::BREAK or $Nice::Try::BREAK eq "return"
0 0 0 !&Scalar::Util::blessed($Nice::Try::VOID[0]) || &Scalar::Util::blessed($Nice::Try::VOID[0]) && !$Nice::Try::VOID[0]->isa('Nice::Try::SENTINEL')
128 9 0 0 shift @_ || $self->encoding
153 9 0 0 defined $Nice::Try::WANTARRAY || defined $Nice::Try::BREAK && $Nice::Try::BREAK eq 'return'
0 0 9 !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
0 0 0 not defined $Nice::Try::BREAK or $Nice::Try::BREAK eq "return"
0 0 9 !&Scalar::Util::blessed($Nice::Try::VOID[0]) || &Scalar::Util::blessed($Nice::Try::VOID[0]) && !$Nice::Try::VOID[0]->isa('Nice::Try::SENTINEL')
167 1 0 0 $self->{'use_cache'} || $opts->{'no_cache'}
234 1 0 0 $self->auto_decode or $opts->{'auto_decode'}
247 0 0 0 $self->default_encoding || $opts->{'default_encoding'}