Branch Coverage

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


line true false branch
73 0 4587 unless @_ == 2
97 0 0 unless @_ == 2
110 0 2661 unless @_ == 3
140 8 782 if ($gen->coerce and $type->has_coercion)
141 8 0 if ($type->coercion->can_be_inlined) { }
234 26562 11049 unless $gen->_override->{$thing}
8577 29034 if (@{[] unless $gen->_override->{$thing};})
252 3 0 unless ref $attr
255 0 0 if ref $attr eq "ARRAY"
275 272 10928 unless defined $value
276 2012 8916 unless $generatable_thing{$key}
305 4244 0 if ref $sub_rename
309 2593 1651 if ($self->method_installer) { }
356 4246 0 if $self->sandboxing_package
419 1700 2546 unless $handler->signature
1585 2661 if (@{[] unless $handler->signature;}) { }
427 0 1585 if ($state->{'shifted_self'}) { }
449 0 2661 if ($state->{'shifted_self'})
462 1810 851 if (defined $min_args and defined $max_args and $min_args == $max_args) { }
264 587 elsif (defined $min_args and defined $max_args) { }
187 400 elsif (defined $min_args and $min_args > 0) { }
495 2538 1708 unless $handler->curried or $handler->prefer_shift_self
543 1403 2843 if (my $curried = $handler->curried)
548 360 1043 if (grep ref($_), @$curried) { }
562 1559 0 defined $_ ? :
578 177 4069 if ($handler->no_validation_needed or not $self->isa)
598 1381 2865 if ($state->{'final_type_check_needed'} and defined $handler->additional_validation)
623 356 1025 unless $opt->{'env'}
628 889 492 if (defined $opt->{'code'})
636 22 867 $opt->{'add_later'} ? :
653 847 3399 unless ($state->{'getter'} =~ /$REASONABLE_SCALAR/x)
659 501 346 if ($handler->name =~ /^(Array|Hash):/) { }
343 6 elsif ($handler->allow_getter_shortcuts and $handler->template . ($handler->lvalue_template || '') =~ /\$GET/) { }
689 0 4246 if ($state->{'final_type_check_needed'} and not $self->set_checks_isa)
721 465 3781 if ($state->{'getter_is_lvalue'} and $handler->lvalue_template and not $self->set_strictly and not $state->{'final_type_check_needed'}) { }
749 343 3903 if $state->{'template_wrapper'}
754 22 4224 if defined $state->{'add_later'}
766 20 4226 if $handler->is_chainable