Branch Coverage

blib/lib/Moose/Meta/TypeConstraint/Union.pm
Criterion Covered Total %
branch 22 24 91.6


line true false branch
43 34 41 if exists $self->{'coercion'}
47 2 39 if (grep {$_->has_coercion;} @{$self->type_constraints;}) { }
68 650 2725 if $type->check($value)
80 9 451 unless $tc->can_be_inlined
110 5 3 unless $other->isa("Moose::Meta::TypeConstraint::Union")
115 0 3 unless @self_constraints == @other_constraints
120 6 1 if ($constraint->equals($other_constraints[$i]))
136 12 18 if &all(sub {
147 3 7 unless defined $err
148 3 4 $message ? :
7 0 if defined $err
183 1 4 if (not defined $opts{'constraint'} and $self->has_coercion)