Branch Coverage

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


line true false branch
20 75 59 ref $v && ref $v eq 'HASH' ? :
134 81 @args == 1 ? :
24 26 189 if exists $args{'required'}
25 26 189 if exists $args{'positional'}
26 3 212 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 56 2 defined $v ? :
68 10 103 unless &Scalar::Util::blessed($other) and $other->isa('Sub::Meta::Param')
70 16 87 if ($self->has_name) { }
71 5 11 unless $self->name eq $other->name
74 5 82 if $other->has_name
77 66 27 if ($self->has_type) { }
78 20 46 unless $self->type eq ($other->type // '')
81 2 25 if $other->has_type
84 5 66 unless $self->optional eq $other->optional
86 5 61 unless $self->named eq $other->named
94 2 92 unless &Scalar::Util::blessed($other) and $other->isa('Sub::Meta::Param')
96 14 78 if ($self->has_name)
97 5 9 unless $self->name eq $other->name
100 55 32 if ($self->has_type)
101 18 37 unless $self->type eq ($other->type // '')
104 5 64 unless $self->optional eq $other->optional
106 5 59 unless $self->named eq $other->named
117 3 18 $self->has_name ? :
120 13 8 $self->has_type ? :
136 3 18 if $self->has_name
138 13 8 if $self->has_type
151 31 5 if $self->type
152 6 30 if $s and $self->name
153 1 35 if $self->named
154 10 26 if $self->name