Branch Coverage

blib/lib/Valiemon/Attributes/Dependencies.pm
Criterion Covered Total %
branch 20 26 76.9


line true false branch
15 1 26 unless ref $data eq 'HASH'
18 0 26 unless (ref $dependencies eq 'HASH')
25 9 17 if (ref $subschema_or_propertyset eq 'HASH') { }
16 1 elsif (ref $subschema_or_propertyset eq 'ARRAY') { }
1 0 elsif ($context->prims->is_string($subschema_or_propertyset)) { }
28 1 8 unless exists $data->{$name}
29 2 6 if $sub_v->validate($data)
33 0 16 unless (scalar @$subschema_or_propertyset > 0)
37 0 16 unless (&all(sub { $context->prims->is_string($_); } , @$subschema_or_propertyset))
41 0 16 unless ($class->check_all_uniqueness($context, $subschema_or_propertyset))
44 6 10 unless exists $data->{$name}
45 3 7 if &all(sub { exists $data->{$_}; } , @$subschema_or_propertyset)
63 0 28 if &any(sub { $context->prims->is_equal($_, $elem); } , @$unique_elements)