Condition Coverage

blib/lib/Sub/MultiMethod.pm
Criterion Covered Total %
condition 46 64 71.8


and 3 conditions

line !l l&&!r l&&r condition
99 50 172 0 @$mmc and $spec->{'method'} != $mmc->[0]{'method'}
396 2 0 2 $spec{'is_monomethod'} && $alias eq $aliases[0]
407 4 26 68 defined $sub_name and not $spec{'no_dispatcher'}
409 16 68 10 not $hooked{$target} and "Role::Hooks"->is_role($target)
462 0 0 4 $target and $sub_name
486 46 4 32 $existing and $me->known_dispatcher($existing)
527 26 14 78 $is_method and is_Object($argv->[0])
26 4 10 $is_method and &is_ClassName($argv->[0])
580 0 730 14 defined $candidate->{'compiled'}{'min_args'} and $candidate->{'compiled'}{'min_args'} > $argc
16 710 4 defined $candidate->{'compiled'}{'max_args'} and $candidate->{'compiled'}{'max_args'} < $argc

or 2 conditions

line l !l condition
72 628 74 $mm->{$method_key} ||= []
200 18 54 $args->{'api_call'} || 'install_candidate'
340 0 4 $spec{'alias'} ||= []
372 16 0 $spec{'code'} || die('NO CODE???')
494 32 14 $is_method || 0

or 3 conditions

line l !l&&r !l&&!r condition
117 22 0 96 is_Int($method_name) or is_ScalarRef($method_name)
194 0 0 72 ref $target or not defined $target
266 328 8 256 $KNOWN_OPTIONS{$key} or $key =~ /^_/
277 102 0 0 $tp{'package'} ||= $target
278 98 0 4 $tp{'subname'} ||= ref $sub_name ? "__ANON__" : $sub_name
386 26 10 0 $check ||= Type::Params::signature(%sig_spec)
427 0 10 0 is_CodeRef($$sub_name) or is_Object($$sub_name)
475 82 0 0 exists &mro::get_linear_isa or eval {