Branch Coverage

lib/Module/New/Path.pm
Criterion Covered Total %
branch 19 42 45.2


line true false branch
15 0 144 unless $self->_root
20 146 142 if defined $_
25 0 10 if (ref $_[0] eq 'Path::Tiny') { }
26 0 0 if defined $_
28 11 0 if defined $_
38 1 9 if (defined $path)
40 1 0 unless $dir->exists
47 38 4 if ($dir->child('lib')->exists)
48 8 30 if ($dir->child('Makefile.PL')->exists or $dir->child('Build.PL')->exists)
63 0 31 unless $root->exists
76 0 69 if ($absolute) { }
82 27 42 unless ($dir->exists)
92 0 0 if ($absolute) { }
98 0 0 if ($dir->exists)
107 0 59 unless $self->_root
112 0 64 unless $path
117 0 64 if ($file->exists)
118 0 0 if ($context->config('grace')) { }
0 0 elsif ($context->config('force')) { }
126 0 0 if $file->slurp eq $files{$path}
139 0 0 unless $self->_root