Branch Coverage

blib/lib/Data/Validate/Structure.pm
Criterion Covered Total %
branch 22 64 34.3


line true false branch
97 0 2 if _autoself()
104 0 0 if _autoself()
121 0 0 if _autoself()
128 0 0 if _autoself()
148 4 2 if ($package eq 'Data::Validate::Structure')
161 4 0 if _autoself()
174 0 0 if _autoself()
185 0 0 if (ref $self->structure eq 'ARRAY') { }
0 0 elsif (ref $self->structure eq 'HASH') { }
219 17 7 if $_[0] eq $_[1]
233 0 5 unless _eq_array([keys %{$sct1;}], [keys %{$sct2;}], 'StrictArray', 0)
235 0 10 unless (_eq($$sct1{$key}, $$sct2{$key}, %op))
251 0 5 if @{$sct1;} == 0 and @{$sct2;} == 0
252 0 5 unless @{$sct1;} == @{$sct2;}
253 0 5 if ($op{'StrictArray'}) { }
257 0 0 unless _eq($$sct1[$i], $$sct2[$i], %op)
267 4 17 if $used{$j}
269 10 7 if (_eq($ofsct1, $ofsct2, %op))
275 0 10 unless $found
338 0 0 if (defined $$sct1{$_}) { }
425 0 0 if ($$sct1{$_})
426 0 0 unless (defined subeq($$sct1{$_}, $$sct2{$_}))
431 0 0 unless keys %{$sct1;}
442 0 0 unless defined $sct2
443 0 0 if $sct1 eq $sct2
455 4 54 if ref $sct eq 'Data::Validate::Structure'
467 0 0 unless ref $sct
470 0 0 if ($ref eq 'ARRAY') { }
0 0 elsif ($ref eq 'HASH') { }
509 29 0 if ($ref1 eq $ref2)
511 0 29 if ($ref1 eq 'ARRAY') { }
5 24 elsif ($ref1 eq 'HASH') { }