Branch Coverage

blib/lib/XML/Struct/Simple.pm
Criterion Covered Total %
branch 24 32 75.0


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