| blib/lib/MooX/ValidateSubs.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 24 | 24 | 100.0 |
| line | true | false | branch |
|---|---|---|---|
| 16 | 12 | 7 | if (ref $error) |
| 27 | 6 | 21 | ref $attr[0] eq 'ARRAY' ? : |
| 32 | 32 | 1 | unless ($name =~ /^\+/) |
| 39 | 1 | 69 | unless (ref $self) |
| 45 | 61 | 9 | if (my $param_spec = $current_spec->{'params'}) |
| 49 | 15 | 46 | if ($@) |
| 54 | 6 | 49 | if (my $keys = $current_spec->{'keys'}) |
| 55 | 4 | 2 | scalar @params > 1 ? : |
| 61 | 15 | 40 | if (my $param_spec = $current_spec->{'returns'}) |
| 65 | 4 | 11 | if ($@) |
| 70 | 41 | 10 | wantarray ? : |
| 78 | 18 | 1 | unless $target->can("_validate_sub") |