Branch Coverage

blib/lib/Type/Params/Alternatives.pm
Criterion Covered Total %
branch 20 22 90.9


line true false branch
10 0 4 if ($] < "5.01")
30 0 19 @_ == 1 ? :
64 6 45 if (is_CodeRef($alt)) { }
31 14 elsif (is_HashRef($alt)) { }
13 1 elsif (is_ArrayRef($alt)) { }
115 40 10 if defined $meta->{'min_args'}
116 26 24 if defined $meta->{'max_args'}
117 26 24 if (defined $meta->{'max_args'} and defined $meta->{'min_args'})
119 24 2 if $meta->{'max_args'} == $meta->{'min_args'}
123 19 31 if ($meta->{'source'} and not $meta->{'source'} =~ /return/ and not keys %{$$meta{'environment'};}) { }
180 12 1 unless $_->{'class_definition'}