Branch Coverage

blib/lib/Moose/Meta/TypeConstraint.pm
Criterion Covered Total %
branch 61 68 89.7


line true false branch
114 8548 2 $first ? :
3074 8550 ref $first ? :
115 11597 27 $args{'name'} ? :
117 1 12 if (exists $args{'message'} and !ref($args{'message'}) || ref $args{'message'} ne 'CODE')
125 11623 0 unless $self->_has_compiled_type_constraint
127 11605 12 unless $self->has_message
139 2 131 unless ($coercion)
143 15 116 if $self->check($_[0])
161 4430 5021 &$constraint_subref(@args) ? :
166 6 12 if ($self->_compiled_type_constraint->($value)) { }
177 1085 46585 if ($self->has_parent and $self->constraint == $null_constraint)
187 2 24431 unless ($self->can_be_inlined)
191 511 23920 if ($self->has_parent and $self->constraint == $null_constraint)
201 495 21020 if ($self->has_parent and $self->constraint == $null_constraint)
211 5 3 if $self->check($value)
222 34 892 $self->has_message ? :
235 1 1764 unless $other
237 407 1357 if $self == $other
239 1356 1 unless $self->constraint == $other->constraint
241 0 1 if ($self->has_parent) { }
242 0 0 unless $other->has_parent
243 0 0 unless $self->parent->equals($other->parent)
245 0 1 if $other->has_parent
255 4 261 unless $type
257 191 70 unless $self->equals($type)
264 4 575 unless $type
269 317 1285 if $parent->equals($type)
288 14458 117 if ($self->can_be_inlined)
296 1 116 unless (defined $check)
300 96 20 if $self->has_parent
317 123 2 if (@parents) { }
322 118 5 if $check != $null_constraint
328 743 7355 unless &$check(@args)
339 9 39 if $check == $null_constraint