Branch Coverage

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


line true false branch
114 8779 2 $first ? :
3125 8781 ref $first ? :
115 11879 27 $args{'name'} ? :
117 1 12 if (exists $args{'message'} and !ref($args{'message'}) || ref $args{'message'} ne 'CODE')
125 11905 0 unless $self->_has_compiled_type_constraint
127 11887 12 unless $self->has_message
139 2 131 unless ($coercion)
143 15 116 if $self->check($_[0])
161 4419 5021 &$constraint_subref(@args) ? :
166 6 12 if ($self->_compiled_type_constraint->($value)) { }
177 1107 47393 if ($self->has_parent and $self->constraint == $null_constraint)
187 2 24884 unless ($self->can_be_inlined)
191 522 24362 if ($self->has_parent and $self->constraint == $null_constraint)
201 506 21373 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 14791 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