| blib/lib/Type/Params/Alternatives.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 19 | 28 | 67.8 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 89 | 16 | 40 | 0 | is_HashRef($alt) and exists $alt->{'closure'} |
| 152 | 29 | 0 | 32 | defined $meta->{'max_args'} and defined $meta->{'min_args'} |
| 158 | 7 | 7 | 47 | $meta->{'source'} and not $meta->{'source'} =~ /return/ |
| 14 | 22 | 25 | $meta->{'source'} and not $meta->{'source'} =~ /return/ and not keys %{$$meta{"environment"};} |
| line | l | !l | condition |
|---|---|---|---|
| 46 | 0 | 101 | exists $self->{$_} or $self->{$_} = $self->{'base_options'}{$_} |
| 47 | 22 | 0 | $self->{'sig_class'} ||= "Type::Params::Signature" |
| 48 | 2 | 20 | $self->{'message'} ||= "Parameter validation failed" |
| 64 | 54 | 0 | $_[0]{'base_options'} ||= {} |
| 65 | 22 | 0 | $_[0]{'alternatives'} ||= [] |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 44 | 0 | 0 | 0 | $self->{'next'} ||= delete $self->{'goto_next'} |
| 67 | 5 | 21 | 1 | $_[0]{'meta_alternatives'} ||= $_[0]->_build_meta_alternatives |