| lib/Text/PO/Element.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 9 | 30 | 30.0 |
| line | l | !l | condition |
|---|---|---|---|
| 126 | 0 | 0 | ref $self->{$k} and scalar @{$self->{$k};} |
| 265 | 14 | 2 | ref $text and scalar @$text |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 73 | 0 | 0 | 0 | length $self->{'file'} and not ref $self->{'file'} |
| 74 | 0 | 0 | 0 | length $self->{'line'} and not ref $self->{'line'} |
| 126 | 0 | 0 | 0 | not ref $self->{$k} and length $self->{$k} |
| 171 | 0 | 0 | 0 | $self->_is_object($elem) and $elem->isa("Text::PO::Element") |
| 265 | 0 | 0 | 14 | not ref $text and length $text |
| 319 | 10 | 2 | 19 | length $self->{'file'} and length $self->{'line'} |
| 320 | 19 | 0 | 0 | ref $self->{'file'} and not scalar @{$self->{'file'};} |
| 397 | 0 | 3 | 47 | not ref $_[0] and length $_[0] |
| line | l | !l | condition |
|---|---|---|---|
| 170 | 0 | 0 | shift @_ || (return $self->error('No element object was provided.')) |