Branch Coverage

lib/SMB/File.pm
Criterion Covered Total %
branch 73 102 71.5


line true false branch
67 0 21 $attr & 1 ? :
0 21 $attr & 16 ? :
74 4 4 S_ISREG($mode) ? :
4 4 S_ISDIR($mode) ? :
0 8 S_ISCHR($mode) ? :
8 0 $mode & 128 ? :
93 9 0 if ($root)
94 0 9 unless -d $root
96 1 8 $name eq '' ? :
98 0 9 if $filename eq ''
101 8 1 !$is_ipc && $filename && -e $filename ? :
104 8 1 @stat ? :
8 1 @stat ? :
8 1 @stat ? :
8 1 @stat ? :
8 1 @stat ? :
8 1 @stat ? :
8 1 @stat ? :
8 1 @stat || $is_srv ? :
133 0 0 $is_eof_first ? :
134 0 0 $is_eof_first ? :
136 0 0 $self->creation_time ? :
142 4 0 $self->attributes & 16 ? :
0 4 $self->is_ipc ? :
178 17 0 if $openfile->handle
197 1 2 unless -e $self->filename
202 0 2 unless rename $filename, $tmp_filename
205 0 2 unless ($openfile)
206 0 0 unless rename $tmp_filename, $filename
210 0 2 unless unlink $tmp_filename
221 2 6 unless sysopen my $fh, $self->filename, from_ntattr($self->attributes)
230 1 0 -e $self->filename ? :
1 7 unless sysopen my $fh, $self->filename, from_ntattr($self->attributes) | 64 | 128
240 0 5 $^O eq 'MSWin32' ? :
242 1 4 unless sysopen my $fh, $self->filename, from_ntattr($self->attributes) | $mode
245 0 4 if $^O eq 'MSWin32'
253 3 1 -e $self->filename ? :
259 2 1 -e $self->filename ? :
266 0 6 if $self->is_ipc
269 1 5 if $disposition == 0
270 1 4 if $disposition == 1
271 1 3 if $disposition == 2
272 1 2 if $disposition == 3
273 1 1 if $disposition == 4
274 1 0 if $disposition == 5
284 0 4 unless $self->is_directory
296 3 1 unless ($want_all and $files)
297 7 0 if -e $_
299 7 0 $name eq '' ? :
303 1 2 if $want_all
306 1 3 $start_idx ? :