Branch Coverage

blib/lib/MooX/Role/Parameterized.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
23 0 0 if $VERBOSE
32 0 26 unless __PACKAGE__->is_role($role)
36 24 2 if ref $args ne ref []
38 17 9 defined $extra{'target'} ? :
40 25 1 if (exists $INFO{$role} and exists $INFO{$role}{'code_for'} and ref $INFO{$role}{'code_for'} eq "CODE")
53 5 22 if (defined $parameter_definition_klass)
56 1 4 if $@
74 0 14 if exists $INFO{$package}{'code_for'}
104 16 3 if ("MooX::Role::Parameterized"->is_role($role))
107 13 3 if (@_ and ref $_[0])
110 12 1 if ref $params ne ref []
120 2 1 if (defined $orig and ref $orig eq "CODE")
126 0 1 if ("Moo::Role"->is_role($role))
145 0 25 unless exists $INFO{$role}
147 23 2 unless (exists $INFO{$role}{'parameter_definition_klass'})
148 20 3 unless exists $INFO{$role}{'parameters_definition'}
166 0 3 if $klass->isa("Moo::Object")