Branch Coverage

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


line true false branch
26 90 0 if defined $layer
27 90 0 if $paths
37 4 0 if ($type eq 'dir')
54 0 4 if $wdir
56 0 4 unless $ok
68 2 832 if $layer
79 0 832 if DEBUG()
81 0 832 if (ref $file and fileno $file) { }
87 4 828 unless $fh->open($file, 'r')
91 0 828 if $seek
92 828 0 unless $seek
94 828 0 if ($self->_handle_looks_safe($fh))
97 0 828 if $rv != 0
102 828 0 unless ($seek)
104 0 828 unless close $fh
113 0 828 unless $fh and fileno $fh
117 0 828 unless $i
123 0 828 if ($< != 0)
126 0 0 if $i->uid != 0 and $i->uid != $<
133 0 828 if DEBUG()
136 0 828 $bypass ? :
137 0 828 !$bypass && $tmode & 8 ? :
141 0 828 if DEBUG()
144 0 828 if $go_write or $go_read
166 1088 242 if $self->is_file($file)
170 8 4 if $self->is_file($test)
179 1350 20 -e $file ? :
0 1370 length $file >= 255 ? :
244 1370 $file =~ / [ \n \r < > * ? ] /msx ? :
0 1614 ref $file ? :
189 0 0 if DEBUG()