Branch Coverage

blib/lib/Mite/Trait/HasRoles.pm
Criterion Covered Total %
branch 15 26 57.6


line true false branch
34 0 13 if (defined $methods{$name} and $methods{$name} ne $exported{$name}) { }
73 9 1 unless $self->attributes->{$attr->name}
98 9 2 if $role
102 0 2 unless (eval "require $role_name; 1")
104 0 0 if (my $yuck = $project->_module_fakeout_namespace)
111 2 0 if ($INC{'Role/Tiny.pm'} and 'Role::Tiny'->is_role($role_name)) { }
118 2 0 if $role
139 0 11 &Str()->check($_[0]) ? :
161 0 0 &Str()->check($_) ? :
0 0 defined $fake_ns ? :
187 120 11 unless @$roles
204 1 10 if $self->role_args->{$_}
246 127 4 unless keys %methods