Branch Coverage

blib/lib/Text/Corpus/Inspec.pm
Criterion Covered Total %
branch 0 74 0.0


line true false branch
84 0 0 unless (exists $Parameters{'corpusDirectory'})
86 0 0 if (defined %ENV and exists $ENV{'TEXT_CORPUS_INSPEC_CORPUSDIRECTORY'})
93 0 0 unless (exists $Parameters{'corpusDirectory'})
100 0 0 unless (-d $Parameters{'corpusDirectory'})
134 0 0 if exists $Parameters{'subsetType'}
138 0 0 if exists $Parameters{'index'}
142 0 0 if defined $indexOfDocument
144 0 0 if exists $Parameters{'uri'} and exists $$corpusFileHash{$Parameters{'uri'}}
147 0 0 unless defined $documentPath
155 0 0 if ($@)
183 0 0 if exists $Parameters{'subsetType'}
184 0 0 unless defined $subsetType
187 0 0 if $subsetType eq $$Self{'test'}
188 0 0 if $subsetType eq $$Self{'training'}
189 0 0 if $subsetType eq $$Self{'validation'}
204 0 0 if ($parameter =~ /^\d+$/) { }
216 0 0 if $indexOfDocument < 0
217 0 0 if $indexOfDocument >= $totalDocuments
220 0 0 if ($type eq $$Self{'test'}) { }
0 0 elsif ($type eq $$Self{'training'}) { }
0 0 elsif ($type eq $$Self{'validation'}) { }
236 0 0 if $indexOfDocument < $Self->getTotalDocuments('subsetType', $type)
264 0 0 if (-e $File::Find::name and $File::Find::name =~ /\d+\.abstr$/)
283 0 0 if ($filePath =~ /Test.\d+\.abstr$/) { }
0 0 elsif ($filePath =~ /Training.\d+\.abstr$/) { }
0 0 elsif ($filePath =~ /Validation.\d+\.abstr$/) { }
312 0 0 if ($filename =~ /(\d+)\.abstr$/)
342 0 0 if $Self->getFilePathOfDocument($i, 'test') ne $Self->getFilePathOfDocument($offset + $i)
348 0 0 if $Self->getFilePathOfDocument($i, 'training') ne $Self->getFilePathOfDocument($offset + $i)
354 0 0 if $Self->getFilePathOfDocument($i, 'validation') ne $Self->getFilePathOfDocument($offset + $i)
385 0 0 unless ($Self->_testDocumentPath)
394 0 0 unless ($totalDocuments)
409 0 0 unless -f $filePath
413 0 0 if (@listOfMissingFiles)
431 0 0 unless defined $document
443 0 0 if ($@)
451 0 0 if ($totalTextInfo < 2)