Branch Coverage

blib/lib/Trinket/Object.pm
Criterion Covered Total %
branch 29 58 50.0


line true false branch
258 3 103 if (ref $_[0] eq 'HASH') { }
270 509 0 if defined $props{$_}
296 1 12 if ($Trinket::Object::AUTOLOAD =~ /.*::get_([\w_]+)/)
301 1 0 unless defined $prop_meta
308 0 0 if $@
316 12 0 if ($Trinket::Object::AUTOLOAD =~ /.*::set_([\w_]+)/)
321 1 11 unless defined $prop_meta
328 11 0 if $@
365 10 4 unless UNIVERSAL::isa($anc_pkg, 'Trinket::Object')
377 6 9 unless defined $PKG_PROPS{$_}
426 0 0 if (not defined $prop_meta) { }
434 0 0 if ($@)
462 0 954 if (not defined $prop_meta) { }
470 954 0 if ($@)
492 0 0 if (not defined $prop_meta) { }
513 0 0 if (not defined $prop_meta) { }
517 0 0 if ($$prop_meta[0] =~ /([^:]+):(.*)/) { }
543 0 0 if (not defined $prop_meta) { }
575 3 0 if $@
604 2 0 if $@
656 0 0 if $$prop_meta[1]
675 4 7 if ($$prop[1])
695 745 214 if ($$prop_meta[1])
696 636 109 if ($$prop[1])
744 3 2 if (defined $meta) { }
769 0 1939 if (ref $prop_meta eq 'HASH')
778 0 0 if (defined $$self[0]{$name}) { }
0 0 elsif (defined ${"${pkg}::PROPERTIES";}{$name}) { }
796 106 226 ref $obj ? :