Branch Coverage

blib/lib/MooX/PluginKit/Core.pm
Criterion Covered Total %
branch 33 48 68.7


line true false branch
60 0 0 $plugins{$plugin_name} ? :
67 0 22 unless defined $plugin_name
70 8 14 if ($plugin_name =~ /^::/)
71 0 8 unless defined $namespace
77 0 22 unless &is_module_name($plugin_name)
80 8 14 if exists $plugins{$plugin_name}
85 14 0 if 'Moo::Role'->is_role($plugin_name)
89 0 0 unless 'Moo::Role'->is_role($plugin_name)
100 50 23 &$sub($class) ? :
109 7 38 unless does_plugin_apply($plugin, $class)
121 20 19 unless @$roles
135 0 11 if exists $plugin->{'applies_to'}
137 6 5 if (not ref $sub) { }
1 4 elsif (ref $sub eq 'ARRAY') { }
1 3 elsif (ref $sub eq 'Regexp') { }
139 10 6 unless $_[0]->isa($package)
145 2 3 if $_[0]->can($method)
154 1 3 $_[0] =~ /$re/ ? :
158 0 11 if ref $sub ne 'CODE'
179 0 6 if exists $plugin->{'includes'}
207 0 11 $consumers{$consumer_name} ? :
234 0 1 if exists $consumer->{'namespace'}
236 0 1 unless defined $namespace
239 0 1 unless &is_module_name($namespace)