Branch Coverage

blib/lib/ORM/Metaprop.pm
Criterion Covered Total %
branch 23 66 34.8


line true false branch
53 0 0 if ($class eq 'ORM::Metaprop') { }
0 0 elsif ($arg{'expr'}) { }
101 7 0 if ($prop[0]{'type'} eq '>')
106 7 0 if (defined $self)
110 0 0 if ($prop[$i]{'type'} eq '>') { }
112 0 0 unless ($self->_expand('prop', $prop[$i]{'name'}))
148 21 0 if (not $arg{'prop'} or $arg{'class'}->_has_prop($arg{'prop'})) { }
151 7 14 $arg{'prop'} ? :
152 7 14 $arg{'prop'} ? :
172 0 26 if ($self->_calculated) { }
232 11 0 if (ref $self) { }
255 0 32 if ($self->_calculated) { }
282 0 26 if ($prop eq 'class' and $self->_prop_ref_class and $self->_prop_ref_class->_is_sealed) { }
290 0 26 if (not $$self{'prop_ref_class'}) { }
0 26 elsif (not $$self{'prop_ref_class'}->_has_prop($prop)) { }
300 7 19 if ($$self{'prop'}) { }
314 0 26 if ($arg{'cast'}) { }
316 0 0 if (UNIVERSAL::isa($arg{'cast'}, $$self{'prop_ref_class'}->_prop_class($prop))) { }
348 0 0 if (not $$self{'prop_ref_class'}) { }
0 0 elsif (not $$self{'prop_ref_class'}->_has_rev_ref($rev_class, $rev_prop)) { }
372 0 0 if (not $$self{'prop_ref_class'}) { }
0 0 elsif (not $$self{'prop_ref_class'}->_has_prop($prop)) { }
0 0 elsif (not $exp_class->_has_prop($exp_prop)) { }
386 0 0 if ($$self{'prop'})
422 0 7 if (substr($str, 0, 1) eq '-') { }
433 0 0 if ($prop{'type'} eq '>') { }
0 0 elsif ($prop{'type'} eq '<') { }
461 0 3 if (exists $CLASS2METACLASS{$class}) { }
471 1 2 unless ($INC{$path} or eval "require $meta")
490 0 0 if (exists $METACLASS2CLASS{$meta}) { }
500 0 0 if ($INC{$path} or eval "require $class") { }
519 18 29 if ($$self{'prop_ref_class'}) { }
0 29 elsif ($$self{'prop_class'}) { }