Condition Coverage

lib/Text/PO/Element.pm
Criterion Covered Total %
condition 10 38 26.3


and 2 conditions

line l !l condition
143 0 0 ref $self->{$k} and scalar @{$self->{$k};}
298 15 2 ref $text and scalar @$text

and 3 conditions

line !l l&&!r l&&r condition
83 0 0 0 length $self->{'file'} and $self->_is_array($self->{'file'})
84 0 0 0 length $self->{'line'} and $self->_is_array($self->{'line'})
143 0 0 0 not ref $self->{$k} and length $self->{$k}
191 0 0 0 $self->_is_object($elem) and $elem->isa("Text::PO::Element")
298 0 0 15 not ref $text and length $text
353 21 0 0 $self->_is_array($self->{'file'}) and not scalar @{$self->{'file'};}
435 14 0 0 ($msgid // '') eq ($other_msgid // '') && ($msgstr // '') eq ($other_msgstr // '')
454 0 3 59 not ref $_[0] and length $_[0]

or 2 conditions

line l !l condition
120 0 0 $self->{'file'} // ""
190 0 0 shift @_ || (return $self->error('No element object was provided.'))
359 0 0 $self->{'line'}[$i] // ""
365 19 2 $self->{'line'} // ""
444 36 0 $msgid // ""