Branch Coverage

blib/lib/XAO/Templates.pm
Criterion Covered Total %
branch 22 56 39.2


line true false branch
35 0 40 if ($path =~ m[\.\./])
45 0 40 if (not defined $sitename) { }
7 33 elsif (exists $XAO::Templates::cache{$sitename} and exists $XAO::Templates::cache{$sitename}{$path}) { }
46 0 0 if exists $XAO::Templates::cache{'/'} and exists $XAO::Templates::cache{'/'}{$path}
50 6 1 if defined $template
56 1 0 if exists $XAO::Templates::cache{'/'} and exists $XAO::Templates::cache{'/'}{$path}
64 33 0 if (defined $sitename)
68 16 17 unless ($tpath and -r $tpath)
74 33 0 if (open F, $tpath)
83 0 33 if (not defined $text) { }
33 0 elsif (length $text < 100000) { }
85 0 0 if defined $sitename
88 16 17 if ($system) { }
90 16 0 if defined $sitename
116 0 81 if ($path =~ m[\.\./])
121 0 81 if not defined $path or $path eq ""
123 81 0 if (defined $sitename)
125 80 1 if -f $tn and -r _
129 0 1 if -f $tn and -r _
145 0 0 &filename($args{'path'}) ? :
159 0 0 if (defined $sitename)
162 0 0 unless ($tpath and -r $tpath)
165 0 0 unless ($tpath and -r $tpath)
167 0 0 wantarray ? :
170 0 0 unless (open F, "/usr/bin/find $tpath -type f |")
172 0 0 wantarray ? :
176 0 0 @list ? :
0 0 wantarray ? :