Branch Coverage

blib/lib/Tree/PseudoIncLib.pm
Criterion Covered Total %
branch 174 254 68.5


line true false branch
110 9 0 if ($parm)
111 0 9 if defined $$parm{'application_directory'}
112 0 9 if defined $$parm{'tree_id'}
113 8 1 if defined $$parm{'max_nodes'}
114 8 1 if defined $$parm{'p_INC'}
115 5 4 if defined $$parm{'skip_empty_dir'}
116 0 9 if defined $$parm{'skip_mode'}
117 0 9 if defined $$parm{'skip_owner'}
118 0 9 if defined $$parm{'skip_group'}
119 0 9 if defined $$parm{'allow_files'}
122 0 9 if defined $$parm{'rpm_type'}
123 0 9 if defined $$parm{'rpm_active'}
128 8 1 if $incoming_parameters
143 50 100 if (not defined $$self{$_}) { }
153 40 200 if ($_ eq 'mask') { }
160 1 1 if ($p_r)
161 0 1 unless (isa($p_r, 'ARRAY'))
169 1 1 if ($_ eq 'mask') { }
178 1 1 if ($pr)
188 1 1 if ($pr)
198 9 1 if ($p_r)
199 0 9 unless (isa($p_r, 'ARRAY'))
214 3 1 if (defined $val)
217 1 2 unless ($$self{'rpm_type'})
228 3 2 if (defined $val)
229 1 2 if (not $$self{'rpm_type'} and $val)
243 7 1 if (defined $val)
253 2 1 if (defined $val)
263 2 1 if (defined $val)
273 2 1 if (defined $val)
284 10 1 if ($val)
285 2 8 if ($val < 15)
338 38 0 if $incoming_parameters
343 0 38 unless (defined $$params{'root_dir'} and $$params{'root_dir'})
348 0 38 unless (defined $$params{'pseudo_cpan_root_name'})
353 0 38 unless (defined $$params{'parent_index'} and $$params{'parent_index'})
358 0 38 unless (defined $$params{'parent_depth_level'})
363 0 38 unless (defined $$params{'prior_libs'} and $$params{'prior_libs'})
368 0 38 unless (isa($prior_libs, 'ARRAY'))
372 0 38 unless (defined $$params{'inc_lib'} and $$params{'inc_lib'})
377 0 38 unless (defined $$params{'allow_masks'} and $$params{'allow_masks'})
382 0 38 unless (isa($allow_masks, 'ARRAY'))
389 0 20 if ($_ eq $dir_path)
396 38 0 unless $dir_path =~ m[/$]
424 12 71 if ($pseudo_cpan_root_name) { }
436 83 0 unless ($$self{'skip_mode'})
463 83 0 unless $$self{'skip_owner'}
464 83 0 unless $$self{'skip_group'}
466 25 58 if ($type eq 'd') { }
45 13 elsif ($type eq 'f') { }
486 12 13 if ($child and scalar @{$child;}) { }
10 3 elsif (not $$self{'skip_empty_dir'}) { }
492 0 12 if $$self{'max_nodes'} < 1
498 0 10 if $$self{'max_nodes'} < 1
512 32 78 if ($name =~ /$mask/i)
519 32 13 if ($keepit) { }
524 32 0 if ($$self{'rpm_active'})
534 0 32 $rpm_name =~ m[^file /]o ? :
540 0 32 if $$self{'max_nodes'} < 1
567 0 13 if $$self{'max_nodes'} < 1
656 10 0 unless $dir =~ m[/$]
679 10 0 unless ($$self{'skip_mode'})
684 10 0 unless $$self{'skip_owner'}
685 10 0 unless $$self{'skip_group'}
701 0 10 if (defined $$lib_descr{'child_dir_list'} and scalar @{$$lib_descr{'child_dir_list'};} eq 0)
707 0 10 if $$self{'max_nodes'} < 1
721 0 5 if ($$self{'max_nodes'} < 1)
750 0 28 unless (isa($source, 'ARRAY'))
758 0 28 unless (defined $$source[0]{'level'})
784 71 0 if $$_{'permissions_octal_text'}
785 10 61 if $$_{'owner'}
786 71 0 if $$_{'group'}
787 28 43 if defined $$_{'allow_index'}
788 0 71 if $$_{'rpm_package_name'}
789 11 60 if $$_{'link_target'}
794 22 49 if ($$_{'child_dir_list'})
827 50 15 unless $$_{'type'} eq 'f' and lc $$_{'name'} =~ /\.pm$/
830 5 10 if ($first{$actual_file_name}) { }
848 5 60 if $$_{'shaded_by_lib'}
862 54 162 if (not defined $$self{$_}) { }
38 124 elsif ($$self{$_} =~ /HASH/ or $$self{$_} =~ /ARRAY/) { }
899 0 1 unless $type
900 0 1 unless $type
903 0 1 if ($type =~ /xhtml/i) { }
1 0 elsif ($type =~ /html/i) { }
968 1 0 if ($css and $css eq 'inline') { }
0 0 elsif ($css) { }
976 0 1 if ($jslib)
981 1 0 if ($overLib)
1024 1 0 unless $$self{'skip_mode'}
1025 1 0 unless $$self{'skip_owner'}
1026 1 0 unless $$self{'skip_group'}
1028 1 0 if $$self{'rpm_active'}
1043 0 1 unless ($image_dir)
1048 0 1 unless ($icon_shaded)
1053 0 1 unless ($icon_folder_opened)
1058 0 1 unless ($icon_symlink)
1063 0 1 unless defined $tree_intend
1069 0 1 unless ($overlib)
1089 1 0 $^V ? :
1133 0 13 unless ($source)
1140 0 13 unless ($image_dir)
1145 0 13 unless ($icon_shaded)
1150 0 13 unless ($icon_folder_opened)
1155 0 13 unless ($icon_symlink)
1160 0 13 unless defined $tree_intend
1165 2 11 if ($$source{'level'} eq 1)
1170 13 0 unless ($$self{'skip_mode'})
1174 13 0 unless ($$self{'skip_owner'})
1178 13 0 unless ($$self{'skip_group'})
1186 13 0 if ($$source{'level'})
1191 5 8 if ($$source{'type'} eq 'f') { }
6 2 elsif ($$source{'type'} eq 'd') { }
1192 1 4 $$source{'shaded_by_lib'} ? :
1202 1 12 if ($$source{'shaded_by_lib'}) { }
1222 4 8 if ($$source{'type'} eq 'f') { }
1224 0 4 unless (defined $allow_index)
1241 5 8 if ($$source{'type'} eq 'f') { }
1257 5 8 if ($$source{'type'} eq 'f') { }
2 6 elsif ($$source{'type'} eq 'd' and $$source{'level'} eq 1) { }
2 4 elsif ($$source{'type'} eq 'l') { }
1260 3 2 if (lc $$source{'name'} =~ /\.pm$/) { }
1281 13 0 if ($$self{'rpm_active'})
1283 0 13 if defined $rpm_package_name and $rpm_package_name =~ m[^file /]
1285 0 13 if ($rpm_package_name) { }
1299 0 5 unless ($icon_src)
1313 0 5 unless ($href)