Branch Coverage

blib/lib/Sub/HandlesVia/CodeGenerator.pm
Criterion Covered Total %
branch 62 76 81.5


line true false branch
73 0 4571 unless @_ == 2
97 0 0 unless @_ == 2
110 0 2638 unless @_ == 3
140 8 782 if ($gen->coerce and $type->has_coercion)
141 8 0 if ($type->coercion->can_be_inlined) { }
234 26415 10981 unless $gen->_override->{$thing}
8523 28873 if (@{[] unless $gen->_override->{$thing};})
252 3 0 unless ref $attr
255 0 0 if ref $attr eq "ARRAY"
275 272 10840 unless defined $value
276 2004 8836 unless $generatable_thing{$key}
305 4219 0 if ref $sub_rename
309 2593 1626 if ($self->method_installer) { }
356 4221 0 if $self->sandboxing_package
419 1691 2530 unless $handler->signature
1583 2638 if (@{[] unless $handler->signature;}) { }
427 0 1583 if ($state->{'shifted_self'}) { }
449 0 2638 if ($state->{'shifted_self'})
462 1789 849 if (defined $min_args and defined $max_args and $min_args == $max_args) { }
264 585 elsif (defined $min_args and defined $max_args) { }
187 398 elsif (defined $min_args and $min_args > 0) { }
497 2529 1692 unless $handler->curried or $handler->prefer_shift_self
545 1389 2832 if (my $curried = $handler->curried)
550 360 1029 if (grep ref($_), @$curried) { }
564 1545 0 defined $_ ? :
580 177 4044 if ($handler->no_validation_needed or not $self->isa)
600 1377 2844 if ($state->{'final_type_check_needed'} and defined $handler->additional_validation)
625 356 1021 unless $opt->{'env'}
630 885 492 if (defined $opt->{'code'})
638 22 863 $opt->{'add_later'} ? :
655 822 3399 unless ($state->{'getter'} =~ /$REASONABLE_SCALAR/x)
661 490 332 if ($handler->name =~ /^(Array|Hash):/) { }
329 6 elsif ($handler->allow_getter_shortcuts and $handler->template . ($handler->lvalue_template || '') =~ /\$GET/) { }
691 0 4221 if ($state->{'final_type_check_needed'} and not $self->set_checks_isa)
723 461 3760 if ($state->{'getter_is_lvalue'} and $handler->lvalue_template and not $self->set_strictly and not $state->{'final_type_check_needed'}) { }
751 329 3892 if $state->{'template_wrapper'}
756 22 4199 if defined $state->{'add_later'}
768 18 4203 if $handler->is_chainable