Branch Coverage

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


line true false branch
152 166 0 if ($self->has_constraint_generator) { }
208 1 1509 unless my $other = Moose::Util::TypeConstraints::find_type_constraint($type_or_name)
211 1271 238 unless $other->isa('MooseX::Meta::TypeConstraint::Structured')
222 1 172 unless my $other = Moose::Util::TypeConstraints::find_type_constraint($type_or_name)
225 84 23 unless $other->type_constraints
17 155 if ($other->isa('MooseX::Meta::TypeConstraint::Structured') and @{[] unless $other->type_constraints;}) { }
226 17 0 if ($self->parent->is_a_type_of($other->parent)) { }
0 0 elsif ($self->parent->is_a_type_of($other)) { }
241 3 1503 unless my $other = Moose::Util::TypeConstraints::find_type_constraint($type_or_name)
243 97 1406 if ($other->isa('MooseX::Meta::TypeConstraint::Structured')) { }
244 24 73 if ($other->type_constraints and $self->type_constraints) { }
245 24 0 if ($self->parent->is_a_type_of($other->parent)) { }
0 0 elsif ($self->parent->is_a_type_of($other)) { }
258 11 62 if ($self->type_constraints) { }
259 11 0 if ($self->SUPER::is_subtype_of($other)) { }
287 0 208 unless $other->isa('MooseX::Meta::TypeConstraint::Structured')
289 120 88 unless $self->type_constraints
290 113 95 unless $other->type_constraints
292 21 187 unless @self_type_constraints == @other_type_constraints
303 28 140 unless $result
312 0 14 unless $other->isa('MooseX::Meta::TypeConstraint::Structured')
314 0 14 unless $self->type_constraints
315 0 14 unless $other->type_constraints
317 0 14 unless @self_type_constraints == @other_type_constraints
327 8 34 if $self_type_constraint->$op($other_type_constraint)