Branch Coverage

blib/lib/Moose/Role.pm
Criterion Covered Total %
branch 31 34 91.1


line true false branch
30 1 164 unless @_
36 1 8 unless @_
43 1 432 if @_ == 1
51 1 431 ref $name eq 'ARRAY' ? :
59 5 392 if (ref $_[0] eq "Regexp")
76 0 2241 unless $Moose::SUPER_BODY
111 1 1322 unless ($role)
117 1318 4 exists $args{'meta_name'} ? :
119 2 1320 unless is_class_loaded($metaclass)
122 1 1319 unless $metaclass->isa("Moose::Meta::Role")
126 1287 32 unless find_type_constraint($role)
129 25 1294 if ($meta = Class::MOP::get_metaclass_by_name($role)) { }
130 2 23 unless ($meta->isa("Moose::Meta::Role"))
131 1 1 if ($meta->isa('Moose::Meta::Class')) { }
146 446 848 unless exists $INC{$filename}
149 1317 0 if (defined $meta_name)
152 0 1317 if ($existing and not $existing->isa("Class::MOP::Method::Meta"))