Branch Coverage

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


line true false branch
99 26 901 unless ($self->_has_constraint or $self->_has_inline_generator)
104 0 927 if $self->_has_constraint and $self->_has_inline_generator
118 902 0 unless (defined $generator)
143 47 261 if $self->value_is_valid($value)
197 1181 81 if $self->_has_inline_generator
198 36 45 if $self->_has_constraint and $self->_constraint ne $NullConstraint
203 45 0 if $self->_has_parent and $self->parent->can_be_inlined
230 0 818 unless $type
238 99 10 if ($self->can_be_inlined) { }
251 8 397 unless $type->has_real_constraint
256 383 14 if ($type->can_be_inlined) { }
264 0 88 unless @constraints
286 0 18 if $self->_has_coercion_from_type($from_id)
306 11 11 unless $coercion->from->value_is_valid($value)
330 0 2 unless $self->can_inline_coercion
346 0 6 unless $self->can_inline_coercion_and_check
366 4 4 unless $self->has_coercions
422 0 468 unless $self->can_be_inlined
438 72 6 if (defined &Sub::Quote::quote_sub and $self->can_be_inlined) { }
464 3 2 if (defined &Sub::Quote::quote_sub and &all(sub {
510 28 895 $self->is_anon ? :
539 43 11 unless $self->is_anon
551 60 22 $self->_has_parent ? :
5 77 defined $self->_constraint ? :