Branch Coverage

blib/lib/Specio/Constraint/Role/Interface.pm
Criterion Covered Total %
branch 39 48 81.2


line true false branch
99 26 882 unless ($self->_has_constraint or $self->_has_inline_generator)
104 0 908 if $self->_has_constraint and $self->_has_inline_generator
118 883 0 unless (defined $generator)
143 47 261 if $self->value_is_valid($value)
196 1179 81 if $self->_has_inline_generator
197 36 45 if $self->_has_constraint and $self->_constraint ne $NullConstraint
202 45 0 if $self->_has_parent and $self->parent->can_be_inlined
229 0 818 unless $type
237 99 10 if ($self->can_be_inlined) { }
250 8 397 unless $type->has_real_constraint
255 383 14 if ($type->can_be_inlined) { }
263 0 88 unless @constraints
285 0 18 if $self->_has_coercion_from_type($from_id)
305 11 11 unless $coercion->from->value_is_valid($value)
329 0 2 unless $self->can_inline_coercion
345 0 6 unless $self->can_inline_coercion_and_check
365 4 4 unless $self->has_coercions
421 0 468 unless $self->can_be_inlined
437 72 6 if (defined &Sub::Quote::quote_sub and $self->can_be_inlined) { }
463 3 2 if (defined &Sub::Quote::quote_sub and &all(sub {
509 28 876 $self->is_anon ? :
538 43 11 unless $self->is_anon
550 54 20 $self->_has_parent ? :
5 69 defined $self->_constraint ? :