Condition Coverage

blib/lib/Sub/HandlesVia/CodeGenerator.pm
Criterion Covered Total %
condition 45 53 84.9


and 3 conditions

line !l l&&!r l&&r condition
140 702 80 8 $gen->coerce and $type->has_coercion
462 0 585 2053 defined $min_args and defined $max_args
585 264 1789 defined $min_args and defined $max_args and $min_args == $max_args
0 585 264 defined $min_args and defined $max_args
0 398 187 defined $min_args and $min_args > 0
600 1843 1001 1377 $state->{'final_type_check_needed'} and defined $handler->additional_validation
661 3 0 329 $handler->allow_getter_shortcuts and $handler->template . ($handler->lvalue_template || '') =~ /\$GET/
691 2652 1569 0 $state->{'final_type_check_needed'} and not $self->set_checks_isa
723 334 2307 1580 $state->{'getter_is_lvalue'} and $handler->lvalue_template
2641 624 956 $state->{'getter_is_lvalue'} and $handler->lvalue_template and not $self->set_strictly
2931 495 461 $state->{'getter_is_lvalue'} and $handler->lvalue_template and not $self->set_strictly and not $state->{'final_type_check_needed'}

or 2 conditions

line l !l condition
237 8523 0 $gen->_override->{$thing} ||= []
277 240 8596 $self->_override->{$key} ||= []
404 4221 0 $method_name || '__ANON__'
445 535 2103 $handler->min_args || 0
612 1021 356 $opt ||= {}
642 76 809 $opt->{'final_type_check_needed'} || !1
661 108 221 $handler->lvalue_template || ''

or 3 conditions

line l !l&&r !l&&!r condition
497 1389 303 2529 $handler->curried or $handler->prefer_shift_self
580 0 177 4044 $handler->no_validation_needed or not $self->isa