Branch Coverage

blib/lib/Graph/Undirected/Components/External.pm
Criterion Covered Total %
branch 76 130 58.4


line true false branch
141 6 1 if exists $Parameters{'delimiter'}
145 6 1 if exists $Parameters{'level'} and defined $Parameters{'level'}
148 6 1 if (exists $Parameters{'baseDirectory'}) { }
155 0 1 if (exists $Parameters{'workingDirectory'} and defined $Parameters{'workingDirectory'}) { }
159 0 0 unless (-d $Parameters{'workingDirectory'})
171 1 0 unless defined $workingDirectory
175 0 1 unless (-e $workingDirectory)
182 0 1 unless (-d $workingDirectory)
192 0 1 unless (-d $baseDirectory)
205 7 0 if exists $Parameters{'purgeSizeBytes'} and defined $Parameters{'purgeSizeBytes'}
207 0 7 if exists $Parameters{'purgeSizeVertices'} and defined $Parameters{'purgeSizeVertices'}
214 6 1 if exists $Parameters{'retainPercentage'} and defined $Parameters{'retainPercentage'}
216 0 7 if $retainPercentage > 1
220 0 7 unless (exists $Parameters{'outputFile'} and defined $Parameters{'outputFile'})
231 0 7 unless (open $outputFileHandle, '>', $$Self{'outputFile'})
267 0 2012 unless @Edge
269 0 2012 if ($$Self{'finishedCalled'})
280 402 1610 if ($$Self{'componenter'}->getSizeBytes > $$Self{'purgeSizeBytes'} or exists $$Self{'purgeSizeVertices'} and $$Self{'componenter'}->getSizeVertices > $$Self{'purgeSizeVertices'})
319 0 0 unless (exists $Parameters{'fileOfEdges'} and defined $Parameters{'fileOfEdges'})
328 0 0 if exists $Parameters{'delimiter'}
332 0 0 unless (open $fileOfEdgesHandle, '<:encoding(utf8)', $fileOfEdges)
340 0 0 unless ($csvParser)
351 0 0 unless defined $edge
354 0 0 unless exists $$edge[0] and defined $$edge[0]
357 0 0 unless exists $$edge[1] and defined $$edge[1]
372 0 408 unless defined $RetainPercentage
375 6 402 unless (exists $$Self{'vertexCompIdSorter'})
381 3 405 if $$Self{'totalEdgesAddedSinceLastPurge'} < 2
423 6 1 if (exists $$Self{'vertexCompIdSorter'}) { }
469 454 1524 if $previousEdgeStr eq $edgeStr
484 6 0 unless exists $$Self{'processingStats'}
491 6 0 if $$Self{'cleanup'}
492 6 0 if $$Self{'cleanup'}
502 1 6 unless exists $$Self{'processingStats'}
529 0 6 unless (open $oldCompIdToNewCompIdFileHandle, '<', $OldCompIdToNewCompIdFile)
550 0 676 if (@oldCompIdToNewCompIdRecord != 2)
557 670 6 if $previousOldCompIdToNewCompIdString ne $oldCompIdToNewCompIdString and $oldCompIdToNewCompIdRecord[0] ne $oldCompIdToNewCompIdRecord[1]
571 0 6 unless (open $oldCompIdToVertexFileHandle, '<', $OldCompIdToVertexFile)
586 0 1159 if (@oldCompIdToVertexRecord != 2)
591 1159 0 if $previousOldCompIdToVertexString ne $oldCompIdToVertexString
605 0 6 unless (open $vertexToNewCompIdFileHandle, '>', $VertexToNewCompIdFile)
618 6 0 if (defined $oldToNewOrOldVertexString)
631 670 1153 if ($listOfOldToNewOrOldVertexRecords[-1][0] ne $$oldToNewOrOldVertexRecord[0])
642 1823 0 if ($oldToNewOrOldVertexString ne $previousOldToNewOrOldVertexString)
673 441 670 if $$ListOfOldToNewOrOldVertexRecords[$indexOfFirstCnRecord][1] eq 'cn'
679 235 441 if ($totalCnRecords == 0)
688 0 441 if ($totalCcRecords > 1)
696 6 435 if ($totalCcRecords == 0) { }
708 0 36 if $previousRecord eq $recordString
731 0 1123 if $previousRecord eq $recordString
750 0 6 unless (open $oldCompIdToVertexFileHandle, '>', $CompIdVertexFile)
767 6 0 if defined $vertexCompIdString
777 1153 2122 if ($listOfVertexCompIdPairs[-1][0] ne $$vertexCompIdPair[0])
787 2145 1130 if ($previousVertexCompIdString ne $vertexCompIdString)
826 986 6 if ($minCompId ne $compId)
852 0 1 if exists $Parameters{'delimiter'}
858 0 9 unless $$a[0] cmp $$b[0]
862 0 1 unless (open $outputFh, '>:encoding(utf8)', $$Self{'outputFile'})
887 0 0 if $previousRecord eq $recordString
898 7 7 if exists $_[1]
905 6 1 if $$Self{'level'} > 0
906 0 1 unless $$Self{'cleanup'}
907 0 1 unless exists $$Self{'baseDirectory'}
908 0 1 unless -e $$Self{'baseDirectory'}
911 1 0 unless $$Self{'unlinkWorkingDirectory'}