| blib/lib/MooX/ValidateSubs.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 21 | 22 | 95.4 |
| line | true | false | branch |
|---|---|---|---|
| 16 | 10 | 5 | if (ref $error) |
| 27 | 4 | 16 | ref $attr[0] eq 'ARRAY' ? : |
| 32 | 23 | 1 | unless ($name =~ /^\+/) |
| 41 | 39 | 9 | if (my $param_spec = $current_spec->{'params'}) |
| 45 | 11 | 28 | if ($@) |
| 50 | 3 | 34 | if (my $keys = $current_spec->{'keys'}) |
| 51 | 2 | 1 | scalar @params > 1 ? : |
| 57 | 14 | 23 | if (my $param_spec = $current_spec->{'returns'}) |
| 61 | 4 | 10 | if ($@) |
| 66 | 27 | 6 | wantarray ? : |
| 74 | 18 | 0 | unless $target->can('_validate_sub') |