Branch Coverage

blib/lib/Moose.pm
Criterion Covered Total %
branch 38 40 95.0


line true false branch
46 1 634 unless (@_)
73 19 1494 ref $name eq 'ARRAY' ? :
94 1 18 if (@_)
100 1 18 if defined $SUPER_PACKAGE and $SUPER_PACKAGE ne caller()
101 1 17 unless $SUPER_BODY
114 19 8 if (my $body = $INNER_BODY{$pkg}) { }
146 1 1564 unless my $class = $args{'for_class'}
150 1558 6 exists $args{'meta_name'} ? :
152 2 1562 unless is_class_loaded($metaclass)
155 1 1561 unless $metaclass->isa("Moose::Meta::Class")
159 1491 70 unless find_type_constraint($class)
164 70 1491 if ($meta = Class::MOP::get_metaclass_by_name($class)) { }
165 3 67 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 856 635 unless exists $INC{$filename}
207 1557 1 if (defined $meta_name)
210 0 1557 if ($existing and not $existing->isa("Class::MOP::Method::Meta"))
223 1495 63 unless $meta->superclasses