Branch Coverage

blib/lib/JE/Object/Proxy.pm
Criterion Covered Total %
branch 57 72 79.1


line true false branch
36 6 35 $class eq 'JE::Object::Proxy' && ($$class_info{'hash'} || $$class_info{'array'}) ? :
79 10 12 if (exists $$class_info{'to_primitive'}) { }
81 6 4 if (defined $tp) { }
82 3 3 if ref $tp eq 'CODE'
87 2 1 defined $type ? :
96 0 12 if (overload::Method($value, '""') or overload::Method($value, '0+') or overload::Method($value, 'bool'))
114 5 13 if (exists $$class_info{'to_string'}) { }
116 4 1 if (defined $tp) { }
117 3 1 if ref $tp eq 'CODE'
122 0 1 defined $type ? :
146 5 3 if (exists $$class_info{'to_number'}) { }
148 4 1 if (defined $tp) { }
149 3 1 if ref $tp eq 'CODE'
154 0 1 defined $type ? :
182 24 6 if ($$class_info{'array'})
183 9 15 if ($name eq 'length')
184 4 5 @_ ? :
188 13 2 if ($name =~ /^(?:0|[1-9]\d*)\z/ and $name < 4294967295)
191 2 11 @_ ? :
195 7 4 if defined $ret
199 10 3 if ($$class_info{'hash'} and not exists $$class_info{'props'}{$name})
200 2 8 if (@_) { }
201 2 0 if $$class_info{'hash'}{'store'}($wrappee, $name, $_[0])
207 4 4 if defined $ret
218 16 16 if ($$class_info{'array'})
221 20 12 if ($$class_info{'hash'})
235 2 0 if ($$class_info{'array'})
236 2 0 if ($name =~ /^(?:0|[1-9]\d*)\z/ and $name < 4294967295 and exists $$wrappee[$name]) { }
0 0 elsif ($name eq 'length') { }
245 0 0 if ($$class_info{'hash'} and not exists $$class_info{'props'}{$name} and exists $$wrappee{$name})
258 2 2 if ($$class_info{'array'})
259 2 0 if ($name =~ /^(?:0|[1-9]\d*)\z/ and $name < 4294967295) { }
0 0 elsif ($name eq 'length') { }
260 0 2 if exists $$wrappee[$name]
267 2 2 if ($$class_info{'hash'})
268 2 0 if exists $$wrappee{$name}