Branch Coverage

blib/lib/Class/Component/Plugin.pm
Criterion Covered Total %
branch 17 28 60.7


line true false branch
31 0 79 unless my($key, $value) = $attr =~ /^(.*?)(?:\(\s*(.+?)\s*\))?$/
32 31 48 unless (defined $value)
40 0 48 if $@
42 7 41 @{$data;} > 1 ? :
53 33 38 unless ($self->__methods_cache)
55 0 33 unless 'Class::Inspector'->methods(ref $self)
56 0 1244 unless my $code = $self->can($method)
57 1157 87 unless my $attrs = $self->__attr_cache->{$code}
70 93 79 if ($is_attribute_detect_cache and $attr_res) { }
73 0 79 unless ($key, $value) = $self->class_component_plugin_attribute_detect($attr, $cache_key)
77 0 172 if (my $pkg = $self->class_component_load_attribute_resolver($key)) { }
78 0 0 unless $pkg->require
83 0 172 unless ($attr_class)
84 0 0 unless $@