Branch Coverage

blib/lib/Sub/HandlesVia.pm
Criterion Covered Total %
branch 20 30 66.6


line true false branch
16 0 4 unless defined $target
17 0 4 if ref $target
27 0 299 unless defined $target
28 0 299 if ref $target
31 295 4 if $toolkit->can("setup_for")
40 0 303 unless eval "require $toolkit"
50 3 43 if ($INC{'Moo/Role.pm'} and "Role::Tiny"->is_role($target) and "Moo::Role"->is_role($target))
56 105 0 if ($INC{'Moo.pm'} and $Moo::MAKERS{$target} and $Moo::MAKERS{$target}{'is_class'})
62 3 69 if ($INC{'Moose/Role.pm'} and $target->can("meta") and $target->meta->isa("Moose::Meta::Role"))
68 86 0 if ($INC{'Moose.pm'} and $target->can("meta") and $target->meta->isa("Moose::Meta::Class"))
74 4 68 if ($INC{'Mouse/Role.pm'} and $target->can("meta") and $target->meta->isa("Mouse::Meta::Role"))
80 85 0 if ($INC{'Mouse.pm'} and $target->can("meta") and $target->meta->isa("Mouse::Meta::Class"))
88 2 0 if ($INC{'Object/Pad.pm'} and "Object::Pad"->VERSION ge "0.67" and do {
94 2 0 if &Scalar::Util::blessed($META) and $META->isa("Object::Pad::MOP::Class")
102 10 6 if (${"${target}::USES_MITE";})