Branch Coverage

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


line true false branch
24 0 0 if $VERBOSE
33 0 26 unless __PACKAGE__->is_role($role)
37 24 2 if ref $args ne ref []
39 17 9 defined $extra{'target'} ? :
41 25 1 if (exists $INFO{$role} and exists $INFO{$role}{'code_for'} and ref $INFO{$role}{'code_for'} eq "CODE")
54 5 22 if (defined $parameter_definition_klass)
57 1 4 if $@
75 0 14 if exists $INFO{$package}{'code_for'}
105 16 3 if ("MooX::Role::Parameterized"->is_role($role))
108 13 3 if (@_ and ref $_[0])
111 12 1 if ref $params ne ref []
121 2 1 if (defined $orig and ref $orig eq "CODE")
127 0 1 if ("Moo::Role"->is_role($role))
146 0 25 unless exists $INFO{$role}
148 23 2 unless (exists $INFO{$role}{'parameter_definition_klass'})
149 20 3 unless exists $INFO{$role}{'parameters_definition'}
167 0 3 if $klass->isa("Moo::Object")