Branch Coverage

blib/lib/Type/Params/Alternatives.pm
Criterion Covered Total %
branch 32 36 88.8


line true false branch
8 0 6 if ($] < "5.01")
42 0 22 @_ == 1 ? :
44 0 22 if exists $self->{'goto_next'}
51 1 21 unless ($Attrs->all(sort(keys %$self)))
55 1 0 @bad == 1 ? :
89 6 56 if (is_CodeRef($alt)) { }
1 55 elsif (is_HashRef($alt) and exists $alt->{'closure'}) { }
39 16 elsif (is_HashRef($alt)) { }
15 1 elsif (is_ArrayRef($alt)) { }
108 10 29 if exists $alt->{'ID'}
150 50 11 if defined $meta->{'min_args'}
151 32 29 if defined $meta->{'max_args'}
152 32 29 if (defined $meta->{'max_args'} and defined $meta->{'min_args'})
154 29 3 if $meta->{'max_args'} == $meta->{'min_args'}
158 25 36 if ($meta->{'source'} and not $meta->{'source'} =~ /return/ and not keys %{$$meta{'environment'};}) { }
169 4 21 defined $meta->{'ID'} ? :
183 7 29 defined $meta->{'ID'} ? :
219 12 1 unless $_->{'class_definition'}