Branch Coverage

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


line true false branch
153 172 0 if ($self->has_constraint_generator) { }
209 1 1509 unless my $other = Moose::Util::TypeConstraints::find_type_constraint($type_or_name)
212 1271 238 unless $other->isa('MooseX::Meta::TypeConstraint::Structured')
223 1 172 unless my $other = Moose::Util::TypeConstraints::find_type_constraint($type_or_name)
226 84 23 unless $other->type_constraints
17 155 if ($other->isa('MooseX::Meta::TypeConstraint::Structured') and @{[] unless $other->type_constraints;}) { }
227 17 0 if ($self->parent->is_a_type_of($other->parent)) { }
0 0 elsif ($self->parent->is_a_type_of($other)) { }
242 3 1487 unless my $other = Moose::Util::TypeConstraints::find_type_constraint($type_or_name)
244 97 1390 if ($other->isa('MooseX::Meta::TypeConstraint::Structured')) { }
245 24 73 if ($other->type_constraints and $self->type_constraints) { }
246 24 0 if ($self->parent->is_a_type_of($other->parent)) { }
0 0 elsif ($self->parent->is_a_type_of($other)) { }
259 11 62 if ($self->type_constraints) { }
260 11 0 if ($self->SUPER::is_subtype_of($other)) { }
288 0 208 unless $other->isa('MooseX::Meta::TypeConstraint::Structured')
290 120 88 unless $self->type_constraints
291 113 95 unless $other->type_constraints
293 21 187 unless @self_type_constraints == @other_type_constraints
304 28 140 unless $result
313 0 14 unless $other->isa('MooseX::Meta::TypeConstraint::Structured')
315 0 14 unless $self->type_constraints
316 0 14 unless $other->type_constraints
318 0 14 unless @self_type_constraints == @other_type_constraints
328 8 34 if $self_type_constraint->$op($other_type_constraint)