Branch Coverage

blib/lib/Moose.pm
Criterion Covered Total %
branch 37 40 92.5


line true false branch
46 1 621 unless (@_)
73 19 1480 ref $name eq 'ARRAY' ? :
94 0 17 if (@_)
100 1 16 if defined $SUPER_PACKAGE and $SUPER_PACKAGE ne caller()
101 1 15 unless $SUPER_BODY
114 19 8 if (my $body = $INNER_BODY{$pkg}) { }
146 1 1517 unless my $class = $args{'for_class'}
150 1511 6 exists $args{'meta_name'} ? :
152 1 1516 unless is_class_loaded($metaclass)
155 1 1515 unless $metaclass->isa("Moose::Meta::Class")
159 1447 68 unless find_type_constraint($class)
164 68 1447 if ($meta = Class::MOP::get_metaclass_by_name($class)) { }
165 3 65 unless ($meta->isa("Moose::Meta::Class"))
166 1 2 if ($meta->isa('Moose::Meta::Role')) { }
194 1 4 unless ($metaclass->isa($ancestor_meta_class))
195 1 0 if ($ancestor_meta_class->isa($metaclass))
204 816 631 unless exists $INC{$filename}
207 1511 1 if (defined $meta_name)
210 0 1511 if ($existing and not $existing->isa("Class::MOP::Method::Meta"))
223 1451 61 unless $meta->superclasses