Branch Coverage

blib/lib/Text/Template/Simple/IO.pm
Criterion Covered Total %
branch 35 62 56.4


line true false branch
27 90 0 if defined $layer
28 90 0 if $paths
38 4 0 if ($type eq 'dir')
55 0 4 if $wdir
57 0 4 unless $ok
69 2 832 if $layer
79 0 832 if DEBUG()
82 0 832 if (ref $file and fileno $file) { }
88 4 828 unless $fh->open($file, 'r')
92 0 828 if $seek
93 828 0 unless $seek
95 828 0 if ($self->_handle_looks_safe($fh))
98 0 828 if $rv != 0
103 828 0 unless ($seek)
105 0 828 unless close $fh
114 0 828 unless $fh and fileno $fh
118 0 828 unless $i
124 0 828 if ($< != 0)
127 0 0 if $i->uid != 0 and $i->uid != $<
134 0 828 if DEBUG()
137 0 828 $bypass ? :
138 0 828 !$bypass && $tmode & 8 ? :
142 0 828 if DEBUG()
145 0 828 if $go_write or $go_read
167 1088 242 if $self->is_file($file)
171 8 4 if $self->is_file($test)
180 1350 20 -e $file ? :
0 1370 length $file >= 255 ? :
244 1370 $file =~ / [ \n \r < > * ? ] / ? :
0 1614 ref $file ? :
190 0 0 if DEBUG()