Branch Coverage

blib/lib/XML/Struct/Simple.pm
Criterion Covered Total %
branch 25 32 78.1


line true false branch
36 7 7 if ($self->root or not ref $simple) { }
37 2 5 !($self->root =~ /^[+-]?[0-9]+$/) ? :
47 0 23 unless defined $depth
49 3 20 if (defined $self->depth and $depth >= $self->depth) { }
2 18 elsif (@$element == 1) { }
58 15 3 if (reftype($$element[1]) eq 'HASH') { }
59 11 4 if $self->attributes
66 9 9 unless (first sub { ref $_; } , @$children)
68 2 7 if ($content eq '') { }
6 1 elsif (not %$attributes) { }
80 7 9 unless ref $child
85 0 9 if ($$simple{$name}) { }
93 0 14 if @{$$simple{$name};} != 1
95 12 2 if (not ref $c or not blessed $c and reftype $c eq 'HASH')
107 0 0 $$node[2] ? :
0 0 ref $node ? :