Branch Coverage

blib/lib/MooseX/Meta/TypeConstraint/Parameterizable.pm
Criterion Covered Total %
branch 31 44 70.4


line true false branch
101 0 96 if $self->has_constraining_value
104 17 79 if (&blessed($_[0]) and $_[0]->isa('Moose::Meta::TypeConstraint')) { }
107 14 3 if (&blessed($_[0]) and $_[0]->isa('Moose::Meta::TypeConstraint')) { }
111 0 14 unless $arg2->isa("Moose::Meta::TypeConstraint")
114 0 14 unless $arg1->is_a_type_of($self->parent_type_constraint)
117 0 14 unless $arg2->is_a_type_of($self->constraining_value_type_constraint)
120 0 14 if @_
123 1 13 if (my $exists = Moose::Util::TypeConstraints::find_type_constraint($name)) { }
139 0 3 unless $arg1->is_a_type_of($self->constraining_value_type_constraint)
143 0 3 if (my $exists = Moose::Util::TypeConstraints::find_type_constraint($name)) { }
160 79 0 if (@_) { }
161 28 51 if ($#_) { }
162 28 0 if ($self->constraining_value_type_constraint->is_a_type_of('HashRef')) { }
176 10 69 if (my $err = $self->constraining_value_type_constraint->validate($args)) { }
181 40 29 if (ref $sig)
185 0 69 if (my $exists = Moose::Util::TypeConstraints::find_type_constraint($name)) { }
195 8 61 $self->has_message ? :
352 0 1 unless ($coercion)
357 0 1 if $self->check($_[0])
368 16 16 if ($self->has_constraining_value)
371 16 16 if (@{$self->coercion->type_coercion_map;}) { }
374 16 0 if (defined $coerced) { }