Branch Coverage

blib/lib/File/Object.pm
Criterion Covered Total %
branch 42 42 100.0


line true false branch
33 2 35 if (not $self->{'type'} or $self->{'type'} ne "file" and $self->{'type'} ne "dir")
40 1 34 if (ref $self->{'dir'} ne "ARRAY")
45 1 14 if ($self->{'type'} eq "file" and @{$self->{'dir'};} and not defined $self->{'file'})
52 20 13 if (@{$self->{'dir'};})
53 33 1 defined $_ ? :
72 6 2 if (defined $dir)
98 3 9 if ($self->{'type'} eq "file")
109 1 1 if ($self->{'type'} eq 'file') { }
135 15 19 if ($self->{'type'} eq 'dir') { }
148 15 20 if ($self->{'type'} eq 'file') { }
163 7 2 unless ($up_num and $up_num =~ /^\d$/ms)
169 2 8 if ($self->{'type'} eq 'file') { }
170 1 1 if (@{$self->{'path'};} > 2) { }
178 7 1 if (@{$self->{'path'};}) { }
194 1 5 if ($self->{'type'} eq "file")
208 1 11 unless (defined $file)
211 6 5 if ($self->{'type'} eq 'file') { }
226 17 26 if ($self->{'type'} eq 'file') { }
229 15 2 defined $self->{'file'} ? :
231 2 15 unless (@{$self->{'path'};})
236 10 16 unless (@{$self->{'path'};})