Branch Coverage

lib/File/ShareDir/ProjectDistDir.pm
Criterion Covered Total %
branch 35 62 56.4


line true false branch
66 0 1 if eval $code
214 6 12 unless (@args)
221 3 26 unless $key = $args[$_] and $value = $args[$_ + 1]
223 0 26 if ('defaults' eq $key)
230 14 118 if ($key eq $setting and not ref $value)
239 0 12 unless defined $$defaults{'filename'}
240 0 12 unless defined $$defaults{'projectdir'}
242 1 11 if (defined $$defaults{'pathclass'})
302 90 114 if $$col{'defaults'}{$field}
303 0 204 if $$arg{$field}
309 16 0 unless ($type)
310 0 16 unless ref $value
313 0 0 if ('pathtiny' eq $type)
314 0 0 if 'Path::Tiny' eq ref $value
317 0 0 if ('pathclassdir' eq $type)
318 0 0 if 'Path::Class::Dir' eq ref $value
322 0 0 if ('pathclassfile' eq $type)
323 0 0 if 'Path::Class::File' eq ref $value
334 0 17 if (defined $DIST_DIR_CACHE{$distname})
340 0 17 unless (defined $dev)
348 7 10 if ($strict)
351 11 6 if (-d $devel_share_dir)
372 0 17 if ($pathclass)
373 0 17 if ($pathtiny)
377 13 4 unless ($distname)
451 0 17 if ($pathclass)
452 0 17 if ($pathtiny)
457 1 16 unless -e $child
458 0 16 if (-d $child)
461 0 16 unless (-r $child)
466 13 4 unless ($distname)