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 587 2074 defined $min_args and defined $max_args
587 264 1810 defined $min_args and defined $max_args and $min_args == $max_args
0 587 264 defined $min_args and defined $max_args
0 400 187 defined $min_args and $min_args > 0
598 1857 1008 1381 $state->{'final_type_check_needed'} and defined $handler->additional_validation
659 3 0 343 $handler->allow_getter_shortcuts and $handler->template . ($handler->lvalue_template || '') =~ /\$GET/
689 2670 1576 0 $state->{'final_type_check_needed'} and not $self->set_checks_isa
721 348 2314 1584 $state->{'getter_is_lvalue'} and $handler->lvalue_template
2662 624 960 $state->{'getter_is_lvalue'} and $handler->lvalue_template and not $self->set_strictly
2938 495 465 $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 8577 0 $gen->_override->{$thing} ||= []
277 240 8676 $self->_override->{$key} ||= []
404 4246 0 $method_name || '__ANON__'
445 535 2126 $handler->min_args || 0
610 1025 356 $opt ||= {}
640 76 813 $opt->{'final_type_check_needed'} || !1
659 115 228 $handler->lvalue_template || ''

or 3 conditions

line l !l&&r !l&&!r condition
495 1403 305 2538 $handler->curried or $handler->prefer_shift_self
578 0 177 4069 $handler->no_validation_needed or not $self->isa