Branch Coverage

blib/lib/Module/Inspector.pm
Criterion Covered Total %
branch 29 44 65.9


line true false branch
110 0 1 unless (defined $self->version_control)
119 0 2 unless -f $self->file_path($file)
155 1 2 unless (exists $$self{'version_control'})
156 0 1 if (-d $self->file_path('.svn')) { }
0 1 elsif (-f $self->file_path('CVS/Repository')) { }
184 1 0 if (wantarray) { }
214 0 6 unless my $file = _STRING(shift())
216 0 6 unless (defined $$self{'document'}{$file})
219 3 3 unless ref $$self{'document'}{$file}
242 0 17 unless my $file = _STRING(shift())
244 0 17 unless (defined $$self{'document'}{$file})
249 14 3 if (ref $$self{'document'}{$file})
256 1 2 if ($loader eq 'PPI::Document::File') { }
1 1 elsif ($loader eq 'YAML::Tiny') { }
1 0 elsif ($loader eq 'Module::Manifest') { }
258 0 1 unless my $document = 'PPI::Document::File'->new($path)
263 0 1 unless my $document = 'YAML::Tiny'->read($path)
268 0 1 unless my $document = 'Module::Manifest'->new($path)
303 0 1 unless $$meta[0]{'name'}
322 0 1 unless my $version = $$meta[0]{'version'}
350 2 2 $requires ? :
373 2 2 $requires ? :