Branch Coverage

blib/lib/Parse/Method/Signatures/TypeConstraint.pm
Criterion Covered Total %
branch 11 28 39.2


line true false branch
43 0 9 if ($self->has_from_namespace)
46 0 0 if ($type = has_available_type_export($pkg, $name)) { }
0 0 elsif (not $name =~ /::/) { }
47 0 0 if $type and $type->isa('MooseX::Types::UndefinedType')
55 0 0 if $func
57 0 0 if $func and defined $proto and not length $proto
73 5 0 unless exists $Carp::Internal{'Class::MOP::Method::Generated'}
75 0 5 unless &blessed($tc)
84 0 13 unless my $res = $self->_union_node($data) || $self->_params_node($data) || $self->_str_node($data) || $self->_leaf($data)
100 11 2 unless $data->isa('PPI::Statement::Expression::TCUnion')
104 0 2 scalar @types == 1 ? :
111 8 3 unless $data->isa('PPI::Statement::Expression::TCParams')
121 7 0 unless $data->isa('PPI::Token::StringifiedWord') or $data->isa('PPI::Token::Number') or $data->isa('PPI::Token::Quote')
126 0 1 $data->isa('PPI::Token::Number') ? :