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 431 if @_ == 1
51 1 430 ref $name eq 'ARRAY' ? :
59 5 388 if (ref $_[0] eq "Regexp")
76 0 2241 unless $Moose::SUPER_BODY
111 1 1315 unless ($role)
117 1311 4 exists $args{'meta_name'} ? :
119 1 1314 unless is_class_loaded($metaclass)
122 1 1313 unless $metaclass->isa("Moose::Meta::Role")
126 1281 32 unless find_type_constraint($role)
129 25 1288 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 442 846 unless exists $INC{$filename}
149 1311 0 if (defined $meta_name)
152 0 1311 if ($existing and not $existing->isa("Class::MOP::Method::Meta"))