Branch Coverage

blib/lib/MooX/ProtectedAttributes.pm
Criterion Covered Total %
branch 15 18 83.3


line true false branch
22 0 16 if $target->can('protected_has') and $target->can('protected_with_deprecated_has')
35 24 88 if @params
36 24 64 if (defined $unless_method)
37 8 16 if &$unless_method()
42 56 24 if $caller->DOES($target)
44 12 12 if ($deprecated_mode) { }
59 0 12 if defined $unless_method and ref $unless_method ne 'CODE'
70 0 12 if defined $unless_method and ref $unless_method ne 'CODE'
78 4 12 if (my $info = $Role::Tiny::INFO{$target})