Branch Coverage

blib/lib/Specio/Constraint/Role/Interface.pm
Criterion Covered Total %
branch 36 46 78.2


line true false branch
98 19 848 unless ($self->_has_constraint or $self->_has_inline_generator)
103 0 867 if $self->_has_constraint and $self->_has_inline_generator
117 844 0 unless (defined $generator)
142 47 261 if $self->value_is_valid($value)
195 1169 81 if $self->_has_inline_generator
196 36 45 if $self->_has_constraint and $self->_constraint ne $NullConstraint
201 45 0 if $self->_has_parent and $self->parent->can_be_inlined
228 0 816 unless $type
236 97 10 if ($self->can_be_inlined) { }
249 8 397 unless $type->has_real_constraint
254 383 14 if ($type->can_be_inlined) { }
262 0 88 unless @constraints
284 0 18 if $self->_has_coercion_from_type($from_id)
304 11 11 unless $coercion->from->value_is_valid($value)
328 0 2 unless $self->can_inline_coercion
344 0 6 unless $self->can_inline_coercion_and_check
364 4 4 unless $self->has_coercions
420 0 468 unless $self->can_be_inlined
436 72 6 if (defined &Sub::Quote::quote_sub and $self->can_be_inlined) { }
462 3 2 if (defined &Sub::Quote::quote_sub and &all(sub { $_->can_be_inlined; } , $self->coercions)) { }
508 22 843 $self->is_anon ? :
541 19 11 $self->_has_parent ? :
0 30 defined $self->_constraint ? :