blib/lib/Type/Params/Alternatives.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 17 | 22 | 77.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
117 | 24 | 0 | 26 | defined $meta->{'max_args'} and defined $meta->{'min_args'} |
123 | 6 | 7 | 37 | $meta->{'source'} and not $meta->{'source'} =~ /return/ |
13 | 18 | 19 | $meta->{'source'} and not $meta->{'source'} =~ /return/ and not keys %{$$meta{"environment"};} |
line | l | !l | condition |
---|---|---|---|
33 | 0 | 73 | exists $self->{$_} or $self->{$_} = $self->{'base_options'}{$_} |
34 | 19 | 0 | $self->{'sig_class'} ||= "Type::Params::Signature" |
35 | 2 | 17 | $self->{'message'} ||= "Parameter validation failed" |
39 | 44 | 0 | $_[0]{'base_options'} ||= {} |
40 | 19 | 0 | $_[0]{'alternatives'} ||= [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
42 | 5 | 18 | 1 | $_[0]{'meta_alternatives'} ||= $_[0]->_build_meta_alternatives |