blib/lib/MooX/HandlesVia.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 16 | 20 | 80.0 |
line | true | false | branch |
---|---|---|---|
29 | 30 | 1 | if (my $has = $target->can('has')) |
34 | 3 | 27 | if ('Moo::Role'->is_role($target)) { } |
46 | 2 | 34 | if not $handles or ref $handles ne 'HASH' |
48 | 30 | 4 | if (my $via = delete $opts{'handles_via'}) |
49 | 0 | 30 | ref $via eq 'ARRAY' ? : |
60 | 107 | 218 | if (ref $delegation eq 'ARRAY') { } |
218 | 0 | elsif (ref $delegation eq '') { } | |
62 | 33 | 74 | if ($via->can($method)) |
67 | 76 | 142 | if ($via->can($delegation)) |
83 | 0 | 0 | if ref $inflator eq 'CODE' |