Condition Coverage

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


and 2 conditions

line l !l condition
651 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'
228 100 57 27 $caller ne $class and $caller->can('_prefix')
229 0 0 27 my $prefix = $caller->_prefix and $caller->_namespace
246 60 0 49 not $self->parent and $self->tree->[1][0] eq 'pi'
273 35 12 25 $caller ne $class and $caller->can('_prefix')
274 0 0 25 my $prefix = $caller->_prefix and $caller->_namespace
316 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'
400 0 2 43 ref $sec eq 'ARRAY' and $sec->[0] eq 'pi'
491 0 16 7 $previous and $previous->[0] eq 'comment'
549 0 0 20 my $n_ns = $ext->_namespace and my $n_pref = $ext->_prefix
731 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')
811 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'
890 1 777 777 $root->[$i] and $root->[$i][0] ne 'tag'

or 2 conditions

line l !l condition
284 72 37 $att->{'loy:once'} //= ''
519 148 18 $root->[2]{'loy:ext'} || ''
568 98 4 $self->SUPER::namespace || undef
639 6 70 shift() // 0
738 3 0 $1 || 60

or 3 conditions

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