Branch Coverage

blib/lib/File/XDG.pm
Criterion Covered Total %
branch 42 60 70.0


line true false branch
22 0 17 unless defined $name
25 14 3 unless defined $api
26 0 17 unless $api == 0 or $api == 1
30 12 5 unless (defined $path_class)
31 3 9 if ($api >= 1) { }
38 10 7 $path_class eq 'Path::Class' ? :
39 10 7 $path_class eq 'Path::Class' ? :
41 1 16 if (XXX) { }
1 15 elsif (XXX) { }
4 11 elsif ($path_class eq 'Path::Tiny') { }
10 1 elsif ($path_class eq 'Path::Class') { }
1 0 elsif ($path_class eq 'File::Spec') { }
70 0 17 if $^O eq "MSWin32" and $strict
73 0 17 if %args
84 0 17 if ($^O eq 'MSWin32') { }
111 3 23 XXX ? :
118 3 28 XXX ? :
123 24 0 if exists $$self{"${type}_dirs"}
130 0 12 unless @subpath
131 0 12 unless defined $self->{$type}
172 1 1 defined $base ? :
178 1 1 if (defined $self->{'runtime'})
184 1 0 if $self->{'strict'}
188 0 0 if ($^O eq "linux")
199 0 0 unless -d $maybe
200 0 0 unless -O $maybe
202 0 0 unless $perm == 448
236 1 1 -d "@{[$self->{'home'}];}/.local/bin" ? :
243 3 3 if $self->{'api'} >= 1
250 3 3 if $self->{'api'} >= 1