Branch Coverage

lib/Path/Extended/Entity.pm
Criterion Covered Total %
branch 45 58 77.5


line true false branch
20 1 503 unless $self->_initialize(@_)
32 8 310 unless $type
33 114 196 $type eq 'file' ? :
49 0 299 unless eval "require $class"
51 101 198 if (@parts and $parts[0] eq '..') { }
10 188 elsif (@parts and 'File::Spec'->file_name_is_absolute($parts[0])) { }
70 0 2280 if $^O eq 'MSWin32'
79 220 80 $$self{'_stringify_absolute'} && !$$self{'_base'} ? :
85 220 80 $self->_stringify_absolute ? :
91 198 259 (shift())->{'handle'} ? :
101 0 2 unless -e $$self{'abs_path'}
114 0 1128 if ($options{'native'}) { }
265 863 elsif ($$self{'_compat'}) { }
119 265 0 if $Path::Extended::IgnoreVolume
129 62 90 @_ % 2 ? :
135 152 0 unless $options{'native'}
148 3 30 if $self->is_open
149 28 5 if $self->exists
155 117 121 -e $self->_absolute ? :
161 0 0 -w $self->_absolute ? :
167 0 0 -r $self->_absolute ? :
173 1 3 unless ($destination)
183 0 3 unless (File::Copy::Recursive::rcopy($self->_absolute, $destination->_absolute))
191 1 3 unless ($destination)
199 1 2 if $self->is_open
203 0 3 unless (File::Copy::Recursive::rmove($self->_absolute, $destination->_absolute))
213 1 3 unless ($destination)
221 1 2 if $self->is_open
224 0 3 unless (rename $self->_absolute, $destination->_absolute)