Condition Coverage

blib/lib/Type/Params/Parameter.pm
Criterion Covered Total %
condition 64 77 83.1


and 2 conditions

line l !l condition
452 748 3 $_ == $type->{'uniq'} and return 1

and 3 conditions

line !l l&&!r l&&r condition
38 0 783 13 defined $self{'alias'} and not ref $self{'alias'}
110 570 0 23 $allow_dash and $self->name =~ /$RE_WORDLIKE/
115 29 0 3 $allow_dash and $name =~ /$RE_WORDLIKE/
175 37 0 93 $is_optional && $constraint->parent && $constraint->parent->{'uniq'} eq &Optional()->{'uniq'} && $constraint->type_parameter
179 0 774 6 $constraint and $constraint->{'uniq'} eq &Optional()->{'uniq'}
206 778 0 2 $needs_clone and not $signature->{'loaded_Storable'}
218 389 369 22 $args{'is_named'} and my(@aliases) = $self->_all_aliases($signature)
251 389 381 10 $args{'is_named'} and $signature->list_to_named
770 1 9 $args{'is_named'} and $signature->list_to_named and $self->in_list
318 612 83 84 $constraint->has_coercion and $constraint->coercion->can_be_inlined
344 769 7 3 $strictness and $$strictness eq 1
769 2 5 $strictness and $$strictness
351 769 8 2 $strictness and not $$strictness
694 67 3 $args{'is_slurpy'} and $self->_dont_validate_slurpy
392 144 94 431 $args{'output_slot'} and $args{'output_slot'} ne $varname
400 89 108 234 not $in_big_optional_block and $varname =~ /\{/

or 2 conditions

line l !l condition
37 14 782 $self{'alias'} ||= []
164 501 279 $args{'type'} || 'arg'
197 319 70 $args{'input_var'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
84 22 95 652 $_[0]->has_default || grep(($_->{'uniq'} == &Optional()->{'uniq'}), $_[0]->type, $_[0]->type->parents)
102 13 9 159 $_[0]->has_default or $_[0]->coerce
215 453 327 0 $self->name || $args{'input_slot'}
234 22 0 0 $self->name || $args{'input_slot'}
256 0 9 0 $really_optional || $constraint
370 83 617 0 $really_optional || $constraint
374 16 45 0 $really_optional || $constraint