Branch Coverage

blib/lib/Params/CheckCompiler/Compiler.pm
Criterion Covered Total %
branch 60 74 81.0


line true false branch
55 1 22 if ($self->_has_name)
56 0 1 $self->_has_caller ? :
77 19 4 if (ref $self->params eq 'HASH') { }
4 0 elsif (ref $self->params eq 'ARRAY') { }
94 6 18 unless ref $spec
100 18 4 unless $spec->{'optional'} or exists $spec->{'default'}
103 4 20 if exists $spec->{'default'}
106 13 11 if $spec->{'type'}
109 2 17 if ($self->slurpy) { }
110 1 1 if ref $self->slurpy
229 2 2 $first_optional_idx == -1 ? :
4 0 if $first_optional_idx != 0
233 2 2 unless $self->slurpy
243 0 6 if exists $spec->{'default'}
246 1 5 if $spec->{'type'}
249 1 3 if (ref $self->slurpy)
268 2 4 ref $spec ? :
269 2 4 if ($spec->{'optional'}) { }
0 4 elsif ($in_optional) { }
350 0 4 if ref $default and &reftype($default) ne 'CODE'
356 1 3 if (ref $default) { }
361 2 1 if (defined $default) { }
362 1 1 if (&looks_like_number($default)) { }
387 0 14 unless &blessed($type)
391 2 12 if $spec->{'optional'}
397 2 12 if $spec->{'optional'}
409 0 0 $type->can('can_be_inlined') ? :
10 0 $type->can('inline_assert') ? :
6 10 $type->can('can_inline_coercion_and_check') ? :
429 4 6 if ($type->has_coercion)
431 1 3 if ($coercion->can_be_inlined) { }
446 7 3 if ($type->can_be_inlined) { }
469 2 4 if ($type->can_inline_coercion_and_check) { }
470 1 1 if ($type->has_coercions) { }
486 1 2 if ($c->can_be_inlined) { }
526 0 0 if ($type->has_coercion)
552 0 0 $type->can_be_inlined ? :