Branch Coverage

blib/lib/Sub/Meta/Param.pm
Criterion Covered Total %
branch 68 68 100.0


line true false branch
20 76 86 ref $v && ref $v eq 'HASH' ? :
162 93 @args == 1 ? :
24 26 229 if exists $args{'required'}
25 26 229 if exists $args{'positional'}
26 4 251 if exists $args{'isa'}
52 4 2 defined $v ? :
53 4 2 defined $v ? :
54 4 2 defined $v ? :
55 4 2 defined $v ? :
56 69 2 defined $v ? :
68 10 107 unless &Scalar::Util::blessed($other) and $other->isa("Sub::Meta::Param")
70 16 91 if ($self->has_name) { }
71 5 11 unless $self->name eq $other->name
74 5 86 if $other->has_name
77 68 29 if ($self->has_type) { }
78 22 46 unless $self->type eq ($other->type // "")
81 2 27 if $other->has_type
84 5 68 unless $self->optional eq $other->optional
86 5 63 unless $self->named eq $other->named
94 2 96 unless &Scalar::Util::blessed($other) and $other->isa("Sub::Meta::Param")
96 14 82 if ($self->has_name)
97 5 9 unless $self->name eq $other->name
100 57 34 if ($self->has_type)
101 20 37 unless $self->type eq ($other->type // "")
104 5 66 unless $self->optional eq $other->optional
106 5 61 unless $self->named eq $other->named
117 3 21 $self->has_name ? :
120 15 9 $self->has_type ? :
136 3 27 if $self->has_name
138 21 9 if $self->has_type
151 58 8 if $self->has_type
152 10 56 if ($self->has_name)
153 6 4 $self->has_type ? :
1 9 $self->named ? :