Branch Coverage

blib/lib/decorators.pm
Criterion Covered Total %
branch 29 40 72.5


line true false branch
31 0 34 unless $package
34 0 34 if ref $package
40 0 34 if $meta->has_method('MODIFY_CODE_ATTRIBUTES') or $meta->has_method_alias('MODIFY_CODE_ATTRIBUTES')
43 0 34 if $meta->has_method('FETCH_CODE_ATTRIBUTES') or $meta->has_method_alias('FETCH_CODE_ATTRIBUTES')
54 298 3 $accepted{$code} ? :
72 0 82 if @unhandled
78 0 127 unless $d
82 13 114 if $d->has_code_attributes('TagMethod')
84 34 80 if ($d->has_code_attributes('CreateMethod'))
85 0 34 unless $method->is_required
91 92 22 unless $attribute->args
93 34 80 if ($d->has_code_attributes('WrapMethod') or $d->has_code_attributes('CreateMethod'))
96 0 34 unless defined $method
108 33 1 if (@providers)
110 25 8 if grep /^:/, @providers
116 25 12 /^\:/ ? :
148 0 254 unless $decorators->has_method($name)
151 148 106 if $method->origin_stash eq 'decorators::providers::for_providers'
152 106 0 if $method->has_code_attributes('Decorator')
158 0 127 unless _has_decorator($decorators, $name)