Branch Coverage

blib/lib/RPerl/CompileUnit/Module/Class/Generator.pm
Criterion Covered Total %
branch 128 254 50.3


line true false branch
37 76 0 if ($self_class eq 'Module_25')
45 0 76 if ($self_class ne 'Class_72')
72 0 76 if ($modes->{'label'} eq 'ON')
80 64 12 if (exists $critic_star->{'children'}[0])
81 0 64 if ($modes->{'label'} eq 'ON')
90 14 62 if (exists $exports_optional->{'children'}[0])
92 0 14 if ($modes->{'label'} eq 'ON')
101 10 4 if (exists $export->{'children'}[0])
104 6 8 if (exists $export_ok->{'children'}[0])
110 10 66 if (exists $include_star->{'children'}[0])
111 0 10 if ($modes->{'label'} eq 'ON')
120 3 73 if (exists $constant_star->{'children'}[0])
121 0 3 if ($modes->{'label'} eq 'ON')
130 0 75 if ($modes->{'label'} eq 'ON')
142 26 49 if (ref $properties eq 'Properties_76') { }
170 0 26 unless ($property_key =~ /^[a-z]/)
182 0 26 if ($property_name ne $property_key)
193 2 22 if (exists $perlapinames_generated::FUNCTIONS_DOCUMENTED->{$property_name} or exists $perlapinames_generated::FUNCTIONS_UNDOCUMENTED->{$property_name} or exists $perlapinames_generated::VARIABLES_DOCUMENTED->{$property_name} or exists $perlapinames_generated::VARIABLES_UNDOCUMENTED->{$property_name})
203 22 0 if (ref $property_type_inner eq 'TypeInnerProperties_238') { }
0 0 elsif (ref $property_type_inner eq 'TypeInnerProperties_239') { }
256 0 22 if (exists $modes->{'_symbol_table'}{$modes->{'_symbol_table'}{'_namespace'}}{'_properties'}{$property_key})
268 2 20 if (exists $modes->{'_symbol_table'}{$parent_package_name . '::'}{'_properties'}{$property_key})
282 4 4 if (ref $property eq 'TERMINAL') { }
289 0 4 unless ($property_key =~ /^[a-z]/)
299 0 4 if ($property_name ne $property_key)
306 0 4 if (exists $perlapinames_generated::FUNCTIONS_DOCUMENTED->{$property_name} or exists $perlapinames_generated::FUNCTIONS_UNDOCUMENTED->{$property_name} or exists $perlapinames_generated::VARIABLES_DOCUMENTED->{$property_name} or exists $perlapinames_generated::VARIABLES_UNDOCUMENTED->{$property_name})
316 4 0 if (ref $property_type_inner eq 'TypeInnerProperties_238') { }
0 0 elsif (ref $property_type_inner eq 'TypeInnerProperties_239') { }
369 0 4 if (exists $modes->{'_symbol_table'}{$modes->{'_symbol_table'}{'_namespace'}}{'_properties'}{$property_key})
381 0 1 if (exists $modes->{'_symbol_table'}{$parent_package_name . '::'}{'_properties'}{$property_key})
407 64 5 if (exists $method_or_subroutine_star->{'children'}[0])
408 0 64 if ($modes->{'label'} eq 'ON')
420 0 56 if ($modes->{'label'} eq 'ON') { }
455 23 0 if ($self_class eq 'Module_25')
460 0 23 if ($self_class ne 'Class_72')
476 0 23 if ($modes->{'label'} eq 'ON') { }
481 0 0 unless (exists $modes->{'current_package_count'} and defined $modes->{'current_package_count'} and $modes->{'current_package_count'} >= 1)
489 23 0 unless (exists $modes->{'current_package_count'} and defined $modes->{'current_package_count'} and $modes->{'current_package_count'} >= 1)
507 0 23 if (exists $modes->{'_enable_sse'} and defined $modes->{'_enable_sse'})
509 0 0 if ($module_path_name =~ /$module_file_name$/msx and $modes->{'_enable_sse'}{$module_path_name})
516 0 23 if (exists $modes->{'_enable_gmp'} and defined $modes->{'_enable_gmp'})
518 0 0 if ($module_path_name =~ /$module_file_name$/msx and $modes->{'_enable_gmp'}{$module_path_name})
525 0 23 if (exists $modes->{'_enable_gsl'} and defined $modes->{'_enable_gsl'})
527 0 0 if ($module_path_name =~ /$module_file_name$/msx and $modes->{'_enable_gsl'}{$module_path_name})
539 0 23 if ($parent_name =~ /^\w+Perl::Config$/) { }
0 23 elsif (substr($parent_name_path, 0, 5) ne 'RPerl' and substr($parent_name_path, 0, 5) ne 'rperl') { }
550 0 0 if ($parent_name . '.pm' ne substr($modes->{'_input_file_name_current'}, $parent_name_length * -1, $parent_name_length))
614 0 23 if ($modes->{'label'} eq 'ON')
620 1 22 if (exists $constant_star->{'children'}[0])
621 0 1 if ($modes->{'label'} eq 'ON')
632 0 23 if ($modes->{'label'} eq 'ON')
641 20 3 if ($parent_name_underscores eq 'RPerl__CompileUnit__Module__Class')
665 4 19 if (ref $properties eq 'Properties_76')
673 0 4 unless ($property_key =~ /^[a-z]/)
687 0 4 if ($property_name ne $property_key)
695 0 4 if (exists $perlapinames_generated::FUNCTIONS_DOCUMENTED->{$property_name} or exists $perlapinames_generated::FUNCTIONS_UNDOCUMENTED->{$property_name} or exists $perlapinames_generated::VARIABLES_DOCUMENTED->{$property_name} or exists $perlapinames_generated::VARIABLES_UNDOCUMENTED->{$property_name})
705 4 0 if (ref $property_type_inner eq 'TypeInnerProperties_238') { }
0 0 elsif (ref $property_type_inner eq 'TypeInnerProperties_239') { }
729 0 4 if (exists $modes->{'_symbol_table'}{$modes->{'_symbol_table'}{'_namespace'}}{'_properties'}{$property_key})
741 1 2 if (exists $modes->{'_symbol_table'}{$parent_package_name . '::'}{'_properties'}{$property_key})
756 0 3 if (defined $property_arrayref_index_max)
760 0 0 if ($property_arrayref_index_max_address eq "$property_arrayref_index_max")
770 3 0 if (defined $property_subexpression and ref $property_subexpression ne 'SubExpression_150')
779 3 0 if ($cpp_source_subgroup->{'H'} ne '')
782 0 0 if (exists $cpp_source_subgroup->{'PMC'} and defined $cpp_source_subgroup->{'PMC'} and $cpp_source_subgroup->{'PMC'} ne '')
788 3 3 if (ref $property eq 'TERMINAL')
798 0 3 unless ($property_key =~ /^[a-z]/)
809 0 3 if ($property_name ne $property_key)
817 0 3 if (exists $perlapinames_generated::FUNCTIONS_DOCUMENTED->{$property_name} or exists $perlapinames_generated::FUNCTIONS_UNDOCUMENTED->{$property_name} or exists $perlapinames_generated::VARIABLES_DOCUMENTED->{$property_name} or exists $perlapinames_generated::VARIABLES_UNDOCUMENTED->{$property_name})
827 3 0 if (ref $property_type_inner eq 'TypeInnerProperties_238') { }
0 0 elsif (ref $property_type_inner eq 'TypeInnerProperties_239') { }
851 0 3 if (exists $modes->{'_symbol_table'}{$modes->{'_symbol_table'}{'_namespace'}}{'_properties'}{$property_key})
863 0 0 if (exists $modes->{'_symbol_table'}{$parent_package_name . '::'}{'_properties'}{$property_key})
878 0 3 if (defined $property_arrayref_index_max)
882 0 0 if ($property_arrayref_index_max_address eq "$property_arrayref_index_max")
892 3 0 if (defined $property_subexpression and ref $property_subexpression ne 'SubExpression_150')
901 3 0 if ($cpp_source_subgroup->{'H'} ne '')
904 0 0 if (exists $cpp_source_subgroup->{'PMC'} and defined $cpp_source_subgroup->{'PMC'} and $cpp_source_subgroup->{'PMC'} ne '')
916 0 0 unless (exists $modes->{'_symbol_table'}{$package_name_colons . '::'}{'_properties'}{$parent_property_key})
918 0 0 if ($cpp_source_subgroup->{'H'} ne '')
921 0 0 if (exists $cpp_source_subgroup->{'PMC'} and defined $cpp_source_subgroup->{'PMC'} and $cpp_source_subgroup->{'PMC'} ne '')
928 3 19 if (exists $properties_declarations->[0])
929 0 3 if ($modes->{'label'} eq 'ON')
935 0 22 if ($modes->{'label'} eq 'ON')
939 3 19 if (exists $properties_accessors_mutators->[0])
940 0 3 if ($modes->{'label'} eq 'ON')
946 0 22 if (exists $properties_accessors_mutators_shims->[0])
947 0 0 if (not exists $cpp_source_group->{'_PMC_accessors_mutators_shims'} && defined $cpp_source_group->{'_PMC_accessors_mutators_shims'}) { }
0 0 elsif (not exists $cpp_source_group->{'_PMC_accessors_mutators_shims'}{$package_name_underscores} && defined $cpp_source_group->{'_PMC_accessors_mutators_shims'}{$package_name_underscores}) { }
958 0 22 if ($modes->{'label'} eq 'ON')
961 0 22 if (exists $properties_initializations->[0]) { }
969 0 22 if ($modes->{'label'} eq 'ON')
977 1 0 if (exists $cpp_source_group->{'_H_constants_shims'} and defined $cpp_source_group->{'_H_constants_shims'} and exists $cpp_source_group->{'_H_constants_shims'}{$package_name_underscores} and defined $cpp_source_group->{'_H_constants_shims'}{$package_name_underscores})
983 0 1 if ($modes->{'label'} eq 'ON')
998 29 8 if (ref $method_or_subroutine eq 'SubroutineOrMethod_88') { }
8 0 elsif (ref $method_or_subroutine eq 'SubroutineOrMethod_87') { }
1003 0 29 if (exists $cpp_source_subgroup->{'H_INCLUDES'} and defined $cpp_source_subgroup->{'H_INCLUDES'})
1013 8 0 if (exists $cpp_source_subgroup->{'PMC'} and defined $cpp_source_subgroup->{'PMC'})
1017 0 8 if (exists $cpp_source_subgroup->{'H_INCLUDES'} and defined $cpp_source_subgroup->{'H_INCLUDES'})
1029 22 0 if (exists $method_declarations->[0])
1030 0 22 if ($modes->{'label'} eq 'ON')
1036 22 0 if (exists $method_definitions->[0] or exists $subroutine_definitions->[0])
1037 0 22 if ($modes->{'label'} eq 'ON')
1041 22 0 if (exists $method_definitions->[0])
1043 3 19 if (exists $subroutine_definitions->[0])
1044 3 19 if (exists $PMC_subroutines_shims->[0])
1045 3 0 if (not exists $cpp_source_group->{'_PMC_subroutines_shims'} && defined $cpp_source_group->{'_PMC_subroutines_shims'}) { }
0 0 elsif (not exists $cpp_source_group->{'_PMC_subroutines_shims'}{$package_name_underscores} && defined $cpp_source_group->{'_PMC_subroutines_shims'}{$package_name_underscores}) { }
1059 0 22 if ($modes->{'label'} eq 'ON')
1069 3 19 if (exists $subroutine_declarations->[0])
1070 0 3 if ($modes->{'label'} eq 'ON')
1074 0 3 if ($modes->{'label'} eq 'ON')
1080 0 22 if ($modes->{'label'} eq 'ON')
1085 0 22 if ($modes->{'label'} eq 'ON')
1106 44 0 unless ($H_INCLUDES_UNIQUE =~ /$H_INCLUDE/)
1133 1 5 if ($property_type =~ /_arrayref$/) { }
1 4 elsif ($property_type =~ /_hashref$/) { }
1135 1 0 if (exists $$rperlnamespaces_generated::RPERL{$property_element_or_value_type . '::'}) { }
1138 0 1 if ($property_element_or_value_type eq 'object' or $property_element_or_value_type eq 'hashref') { }
0 1 elsif ($property_element_or_value_type eq 'arrayref') { }
1162 1 0 if (exists $$rperlnamespaces_generated::RPERL{$property_element_or_value_type . '::'}) { }
1165 0 1 if ($property_element_or_value_type eq 'object' or $property_element_or_value_type eq 'hashref') { }
0 1 elsif ($property_element_or_value_type eq 'arrayref') { }
1191 6 0 if ($is_direct) { }
1214 0 0 if ($property_type =~ /_arrayref$/) { }
0 0 elsif ($property_type =~ /_hashref$/) { }
1274 0 0 if ($modes->{'subcompile'} eq 'DYNAMIC')