Condition Coverage

blib/lib/XML/Loy.pm
Criterion Covered Total %
condition 52 75 69.3


and 2 conditions

line l !l condition
664 0 0 croak("No element") and return

and 3 conditions

line !l l&&!r l&&r condition
202 87 0 117 not $self->parent and ref $self->tree->[1]
87 0 117 not $self->parent and ref $self->tree->[1] and ref $self->tree->[1] eq "ARRAY"
0 2 115 not $self->parent and ref $self->tree->[1] and ref $self->tree->[1] eq "ARRAY" and $self->tree->[1][0] eq "pi"
233 100 57 27 $caller ne $class and $caller->can("_prefix")
234 0 0 27 my $prefix = $caller->_prefix and $caller->_namespace
251 60 0 49 not $self->parent and $self->tree->[1][0] eq "pi"
282 35 12 25 $caller ne $class and $caller->can("_prefix")
283 0 0 25 my $prefix = $caller->_prefix and $caller->_namespace
325 432 0 38 not $self->parent and ref $self->tree->[1]
432 0 38 not $self->parent and ref $self->tree->[1] and ref $self->tree->[1] eq "ARRAY"
0 2 36 not $self->parent and ref $self->tree->[1] and ref $self->tree->[1] eq "ARRAY" and $self->tree->[1][0] eq "pi"
409 0 2 43 ref $sec eq "ARRAY" and $sec->[0] eq "pi"
504 0 16 7 $previous and $previous->[0] eq "comment"
562 0 0 20 my $n_ns = $ext->_namespace and my $n_pref = $ext->_prefix
744 0 6 56 $child->[0] and $child->[0][0] eq "text"
36 6 56 not $child->[1] and ($child->[0] and $child->[0][0] eq "text")
824 0 0 39 not exists $attr->{'loy:type'} and $child->[0]
0 35 4 not exists $attr->{'loy:type'} and $child->[0] and $child->[0][0] eq "text"
903 1 777 777 $root->[$i] and $root->[$i][0] ne "tag"

or 2 conditions

line l !l condition
293 72 37 $att->{'loy:once'} //= ""
532 148 18 $root->[2]{'loy:ext'} || ''
581 98 4 $self->SUPER::namespace || undef
652 6 70 shift() // 0
751 3 0 $1 || 60

or 3 conditions

line l !l&&r !l&&!r condition
95 9 1 0 &blessed($_[0]) || $_[0]
345 18 700 70 index($type, ":") > 0 or index($e->[1], ":") < 0