Branch Coverage

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


line true false branch
18 58 183 ref $v && ref $v eq 'HASH' ? :
241 7 @args == 1 ? :
43 2 51 unless &Scalar::Util::blessed($other) and $other->isa("Sub::Meta::Returns")
45 25 26 if ($self->has_scalar) { }
46 12 13 unless _eq($self->scalar, $other->scalar)
49 5 21 if $other->has_scalar
52 9 25 if ($self->has_list) { }
53 1 8 unless _eq($self->list, $other->list)
56 2 23 if $other->has_list
59 8 23 if ($self->has_void) { }
60 1 7 unless _eq($self->void, $other->void)
63 2 21 if $other->has_void
72 2 58 unless &Scalar::Util::blessed($other) and $other->isa("Sub::Meta::Returns")
74 27 31 if ($self->has_scalar)
75 12 15 unless _eq($self->scalar, $other->scalar)
78 12 34 if ($self->has_list)
79 1 11 unless _eq($self->list, $other->list)
82 12 33 if ($self->has_void)
83 1 11 unless _eq($self->void, $other->void)
96 7 9 $self->has_scalar ? :
99 5 11 $self->has_list ? :
102 5 11 $self->has_void ? :
115 9 11 if $self->has_scalar
117 7 13 if $self->has_list
119 7 13 if $self->has_void
127 11 149 if (ref $type and ref $type eq 'ARRAY') { }
128 3 8 unless ref $other eq "ARRAY"
129 4 4 unless @$type == @$other
131 2 6 unless $type->[$i] eq $other->[$i]
135 36 113 unless defined $other and $type eq $other
144 2 38 if (ref $type and ref $type eq 'ARRAY') { }
161 2 20 unless &Scalar::Util::blessed($other) and $other->isa("Sub::Meta::Returns")
164 7 13 if ($self->has_scalar) { }
165 3 4 unless _eq($self->scalar, $other->scalar)
169 3 10 if $other->has_scalar
172 5 9 if ($self->has_list) { }
173 2 3 unless _eq($self->list, $other->list)
177 2 7 if $other->has_list
180 4 6 if ($self->has_void) { }
181 2 2 unless _eq($self->void, $other->void)
185 2 4 if $other->has_void
193 2 19 unless &Scalar::Util::blessed($other) and $other->isa("Sub::Meta::Returns")
196 7 12 if ($self->has_scalar)
197 3 4 unless _eq($self->scalar, $other->scalar)
201 6 10 if ($self->has_list)
202 2 4 unless _eq($self->list, $other->list)
206 6 8 if ($self->has_void)
207 2 4 unless _eq($self->void, $other->void)
224 1 21 if (ref $type and ref $type eq 'ARRAY') { }
235 17 19 if (not $self->has_scalar || $self->has_list || $self->has_void) { }
14 5 elsif (_all_eq($self)) { }
245 8 7 if $self->$has