Branch Coverage

blib/lib/Package/FromData.pm
Criterion Covered Total %
branch 46 50 92.0


line true false branch
24 3 26 unless ref $_[1] and ref $_[1] eq $_[2]
44 3 7 unless $$def{'constructors'}
50 8 2 unless $$def{'variables'}
51 0 6 unless ($variable =~ /^(?<sigil>$sigils)(?<varname>\w+)$/o)
58 2 4 unless ref $value
67 8 2 unless $$def{'functions'}
74 8 2 unless $$def{'methods'}
79 1 19 unless blessed($_[0])
84 8 2 unless $$def{'static_methods'}
96 1 10 unless $name =~ /^\w(?:\w|::)+\w$/
112 20 37 if $precondition
113 38 18 if ($shift)
114 56 0 if $body
127 16 7 if @fdef % 2 == 1
130 4 19 if (not @fdef and ref $default eq 'HASH' and scalar keys %$default == 1) { }
150 33 39 if (@result)
151 6 27 if wantarray
155 6 13 if (ref $default eq 'ARRAY')
156 3 3 if (wantarray)
180 3 26 if ref $out eq 'ARRAY'
184 33 39 if (eq_deeply([@_], [@in]))
185 6 27 if (ref $out eq 'HASH')
186 3 3 if ($wantarray)
187 0 3 unless $$out{'list'}
212 0 41 unless ref $value