Branch Coverage

blib/lib/Sub/Meta/Returns.pm
Criterion Covered Total %
branch 100 100 100.0


line true false branch
18 53 12 ref $v && ref $v eq 'HASH' ? :
65 7 @args == 1 ? :
43 4 31 unless &Scalar::Util::blessed($other) and $other->isa('Sub::Meta::Returns')
45 23 8 if ($self->has_scalar) { }
46 10 13 unless _eq($self->scalar, $other->scalar)
49 2 6 if $other->has_scalar
52 9 10 if ($self->has_list) { }
53 1 8 unless _eq($self->list, $other->list)
56 2 8 if $other->has_list
59 8 8 if ($self->has_void) { }
60 1 7 unless _eq($self->void, $other->void)
63 2 6 if $other->has_void
72 4 33 unless &Scalar::Util::blessed($other) and $other->isa('Sub::Meta::Returns')
74 25 8 if ($self->has_scalar)
75 10 15 unless _eq($self->scalar, $other->scalar)
78 12 11 if ($self->has_list)
79 1 11 unless _eq($self->list, $other->list)
82 12 10 if ($self->has_void)
83 1 11 unless _eq($self->void, $other->void)
96 5 2 $self->has_scalar ? :
99 3 4 $self->has_list ? :
102 3 4 $self->has_void ? :
115 5 2 if $self->has_scalar
117 3 4 if $self->has_list
119 3 4 if $self->has_void
127 10 113 if (ref $type and ref $type eq 'ARRAY') { }
128 2 8 unless ref $other eq 'ARRAY'
129 4 4 unless @$type == @$other
131 2 6 unless $type->[$i] eq $other->[$i]
135 26 87 unless $type eq $other
143 3 16 unless &Scalar::Util::blessed($other) and $other->isa('Sub::Meta::Returns')
146 6 10 if ($self->has_scalar) { }
147 2 4 unless _eq($self->scalar, $other->scalar)
151 2 8 if $other->has_scalar
154 4 8 if ($self->has_list) { }
155 1 3 unless _eq($self->list, $other->list)
159 2 6 if $other->has_list
162 3 6 if ($self->has_void) { }
163 1 2 unless _eq($self->void, $other->void)
167 2 4 if $other->has_void
175 3 16 unless &Scalar::Util::blessed($other) and $other->isa('Sub::Meta::Returns')
178 6 10 if ($self->has_scalar)
179 2 4 unless _eq($self->scalar, $other->scalar)
183 5 9 if ($self->has_list)
184 1 4 unless _eq($self->list, $other->list)
188 5 8 if ($self->has_void)
189 1 4 unless _eq($self->void, $other->void)
200 2 20 if (ref $type and ref $type eq 'ARRAY') { }
217 1 2 if (_eq($self->scalar, $self->list) and _eq($self->list, $self->void)) { }
221 5 1 $self->$_ ? :