Branch Coverage

blib/lib/MooseX/Meta/TypeConstraint/Structured.pm
Criterion Covered Total %
branch 37 50 74.0


line true false branch
150 172 0 if ($self->has_constraint_generator) { }
206 1 1515 unless my $other = Moose::Util::TypeConstraints::find_type_constraint($type_or_name)
209 1277 238 unless $other->isa('MooseX::Meta::TypeConstraint::Structured')
220 1 172 unless my $other = Moose::Util::TypeConstraints::find_type_constraint($type_or_name)
223 84 23 unless $other->type_constraints
17 155 if ($other->isa('MooseX::Meta::TypeConstraint::Structured') and @{[] unless $other->type_constraints;}) { }
224 17 0 if ($self->parent->is_a_type_of($other->parent)) { }
0 0 elsif ($self->parent->is_a_type_of($other)) { }
239 3 1500 unless my $other = Moose::Util::TypeConstraints::find_type_constraint($type_or_name)
241 97 1403 if ($other->isa('MooseX::Meta::TypeConstraint::Structured')) { }
242 24 73 if ($other->type_constraints and $self->type_constraints) { }
243 24 0 if ($self->parent->is_a_type_of($other->parent)) { }
0 0 elsif ($self->parent->is_a_type_of($other)) { }
256 11 62 if ($self->type_constraints) { }
257 11 0 if ($self->SUPER::is_subtype_of($other)) { }
285 0 208 unless $other->isa('MooseX::Meta::TypeConstraint::Structured')
287 120 88 unless $self->type_constraints
288 113 95 unless $other->type_constraints
290 21 187 unless @self_type_constraints == @other_type_constraints
301 28 140 unless $result
310 0 14 unless $other->isa('MooseX::Meta::TypeConstraint::Structured')
312 0 14 unless $self->type_constraints
313 0 14 unless $other->type_constraints
315 0 14 unless @self_type_constraints == @other_type_constraints
325 8 34 if $self_type_constraint->$op($other_type_constraint)