Branch Coverage

blib/lib/MooX/ValidateSubs.pm
Criterion Covered Total %
branch 22 24 91.6


line true false branch
16 10 5 if (ref $error)
27 4 16 ref $attr[0] eq 'ARRAY' ? :
32 23 1 unless ($name =~ /^\+/)
39 0 48 unless (ref $self)
45 39 9 if (my $param_spec = $current_spec->{'params'})
49 11 28 if ($@)
54 3 34 if (my $keys = $current_spec->{'keys'})
55 2 1 scalar @params > 1 ? :
61 14 23 if (my $param_spec = $current_spec->{'returns'})
65 4 10 if ($@)
70 27 6 wantarray ? :
78 18 0 unless $target->can('_validate_sub')