Branch Coverage

blib/lib/EntityModel/Definition.pm
Criterion Covered Total %
branch 9 30 30.0


line true false branch
42 2 0 if (ref $src ~~ 'HASH') { }
0 0 elsif (ref $src ~~ 'ARRAY') { }
50 0 2 unless defined $k
53 0 2 if $k eq 'file' and defined $v
54 2 0 if $k eq 'string' and defined $v
57 0 2 unless ref $k or $v
58 0 2 if ref $k and not $v
59 0 2 unless $structure
78 0 0 if (ref $target ~~ 'HASH') { }
0 0 elsif (ref $target ~~ 'ARRAY') { }
86 0 0 unless defined $k
91 0 0 if $k eq 'file' and defined $v
95 0 0 if $k eq 'string'
157 6 0 if (my $name = delete $$definition{'name'})
161 6 0 if (my $entity = delete $$definition{'entity'})