Branch Coverage

lib/Badger/Filesystem/Path.pm
Criterion Covered Total %
branch 42 58 72.4


line true false branch
113 559 7 if (@_ == 1) { }
114 14 0 ref $_[0] eq 'ARRAY' || !ref($_[0]) ? :
545 14 ref $_[0] eq 'HASH' ? :
124 0 566 if $args->{'fs'}
125 1 565 if $args->{'dir'}
126 0 566 if $args->{'vol'}
131 541 25 if $args->{'filesystem'}
146 23 6 unless defined $self->{'absolute'}
151 1 1 (shift())->is_absolute ? :
170 14 7 $self->is_absolute ? :
182 3 75 $fs->is_absolute($path) ? :
207 0 0 unless &blessed($that) and $that->isa("Badger::Filesystem::Path")
209 0 0 if $Badger::Filesystem::Path::DEBUG
216 0 0 unless &blessed($that) and $that->isa("Badger::Filesystem::Path")
235 46 36 $skip ? :
3 82 $self->{'path'} eq $parent->{'path'} ? :
247 0 20 if $Badger::Filesystem::Path::DEBUG
250 17 3 if (@$path > 1) { }
3 0 elsif (@$path == 1) { }
261 3 0 if (length $path->[0])
280 4 65 unless ($self->exists)
281 4 0 if (@_ and $_[0]) { }
307 0 38 wantarray ? :
314 0 59 wantarray ? :
338 2 1 unless defined $name
345 2 0 $self->{'path'} =~ /$MATCH_EXT/ ? :
352 1 1149 unless ref $self
381 1 2 if (@_ == 1) { }
1 1 elsif (@_ > 1) { }