Branch Coverage

blib/lib/Template/Direct/Directory/File.pm
Criterion Covered Total %
branch 17 64 26.5


line true false branch
43 0 2 unless $file
48 0 2 unless ($$self{'Parent'})
54 0 0 if $ENV{'FILE_DEBUG'}
58 0 2 unless ($$self{'Parent'})
59 0 0 if $ENV{'FILE_DEBUG'}
63 0 2 if ($p{'Create'} and not $self->exist)
67 0 2 if (my $cache = $self->parent->loadCache($self->path))
71 2 0 if $$self{'Cache'} and $self->exist || $p{'Create'}
87 2 2 if (not defined $$self{'Data'} or $self->outofdate)
108 0 0 unless ($filename)
112 0 0 if (defined $data) { }
114 0 0 if ($p{'Text'})
119 0 0 $p{'Append'} ? :
121 0 0 if (open FILE, $method . $filename) { }
122 0 0 if ref $data eq 'Fh'
126 0 0 unless ($p{'nocache'})
131 0 0 if $ENV{'FILE_DEBUG'}
165 0 2 unless ($filename)
170 2 0 if (open File, $filename) { }
172 0 2 if $ENV{'FILE_DEBUG'}
178 0 2 if not $$self{'Cache'} and $ENV{'FILE_DEBUG'}
181 0 2 if ($p{'Quoting'})
184 0 2 if ($p{'Text'})
234 8 0 -f $self->path ? :
265 0 0 if $ENV{'DIR_DEBUG'}
267 0 0 if $result
283 0 0 if ($h)
285 0 0 if $filesize > 1024
286 0 0 if $filesize > 1024
287 0 0 if $filesize > 1024
304 0 2 if not length $self->modtime or $newfiletime < $self->modtime
316 4 0 defined $$self{'modtime'} ? :