Branch Coverage

blib/lib/Brackup/File.pm
Criterion Covered Total %
branch 33 56 58.9


line true false branch
23 0 117 if %opts
25 0 117 unless $$self{'root'} and $$self{'root'}->isa('Brackup::Root')
26 0 117 unless defined $$self{'path'}
40 2308 8 if $$self{'stat'}
59 0 130 unless defined $result
76 261 40 if $self->is_file
77 40 0 if $self->is_dir
78 0 0 if $self->is_link
79 0 0 if $self->is_fifo
105 0 90 if ($$self{'path'} =~ /\.mp3$/i and $$self{'root'}->smart_mp3_chunking)
114 286 110 if $$self{'chunks'}
117 20 90 unless ($self->is_file)
137 0 90 unless $self->is_file
143 21 69 if $dig
148 57 12 if ($self->chunks == 1)
153 69 0 unless ($dig)
156 0 69 unless sysopen my $fh, $path, 0
170 0 0 if $$self{'linktarget'}
171 0 0 unless $self->is_link
206 20 628 unless length $val
213 90 20 if ($self->is_file) { }
216 90 0 if $size
219 0 20 if ($self->is_link)
225 110 0 unless ($self->is_link)
227 110 0 unless $self->root->noatime
230 8 82 unless ($type eq 'd' and $mode eq $backup->default_directory_mode or $type eq 'f' and $mode eq $backup->default_file_mode)
237 0 110 unless ($uid eq $backup->default_uid)
241 0 110 unless ($gid eq $backup->default_gid)