Branch Coverage

lib/Rex/Helper/Path.pm
Criterion Covered Total %
branch 24 46 52.1


line true false branch
41 0 12 if ($file_name =~ m[/$]u)
48 0 12 if ($base_name =~ qr/\*/u)
57 0 12 if ($has_wildcard)
61 0 12 if ($ends_with_slash)
62 0 0 unless ($path =~ m[/$]u)
70 0 12 unless ($caller_package)
79 0 12 if ($caller_file =~ m[^/loader/[^/]+/__Rexfile__.pm$]u)
84 0 12 if ($^O =~ /^MSWin/u and not Rex::is_ssh()) { }
97 0 0 substr($_, -1) eq '/' ? :
111 0 0 if (-e $expansion)
116 0 0 if (-e $expansion)
122 8 4 if (-e $file_name)
128 0 4 if (-e $cat_file_name)
137 4 4 unless ($caller_package)
144 0 4 if (-e $cat_file_name)
165 1209 2 unless ($path =~ /^~/u)
176 1 1 if ($local) { }
177 0 1 if ($^O =~ /^MSWin/u) { }
183 0 1 if ($path =~ m[^~([a-zA-Z0-9_][^/]+)/]u) { }
196 0 1 if ($path =~ m[^~([a-zA-Z0-9_][^/]+)/]u) { }
233 0 156 if ($replacement_path =~ /\{([^\}]+)\}/u)
252 12 1 if ($fs->is_symlink($path))
254 0 13 if (not $link =~ m[^/]u) { }