line |
true |
false |
branch |
63
|
0 |
0 |
$plugins{$plugin_name} ? : |
70
|
0 |
22 |
unless defined $plugin_name |
73
|
8 |
14 |
if ($plugin_name =~ /^::/) |
74
|
0 |
8 |
unless defined $namespace |
80
|
0 |
22 |
unless &is_module_name($plugin_name) |
83
|
8 |
14 |
if exists $plugins{$plugin_name} |
88
|
14 |
0 |
if 'Moo::Role'->is_role($plugin_name) |
92
|
0 |
0 |
unless 'Moo::Role'->is_role($plugin_name) |
103
|
50 |
23 |
&$sub($class) ? : |
112
|
7 |
38 |
unless does_plugin_apply($plugin, $class) |
124
|
20 |
19 |
unless @$roles |
138
|
0 |
11 |
if exists $plugin->{'applies_to'} |
140
|
6 |
5 |
if (not ref $sub) { } |
|
1 |
4 |
elsif (ref $sub eq 'ARRAY') { } |
|
1 |
3 |
elsif (ref $sub eq 'Regexp') { } |
142
|
10 |
6 |
unless $_[0]->isa($package) |
148
|
2 |
3 |
if $_[0]->can($method) |
157
|
1 |
3 |
$_[0] =~ /$re/ ? : |
161
|
0 |
11 |
if ref $sub ne 'CODE' |
182
|
0 |
6 |
if exists $plugin->{'includes'} |
210
|
0 |
11 |
$consumers{$consumer_name} ? : |
237
|
0 |
1 |
if exists $consumer->{'namespace'} |
239
|
0 |
1 |
unless defined $namespace |
242
|
0 |
1 |
unless &is_module_name($namespace) |