Branch Coverage

blib/lib/GO/AnnotationProvider/AnnotationParser.pm
Criterion Covered Total %
branch 45 154 29.2


line true false branch
264 0 0 if defined $message
319 0 0 if $_ =~ /^!/
323 0 0 unless $_
327 0 0 if (scalar @line != $kNumColumnsInFile)
339 0 0 if $databaseId eq ''
341 0 0 if (not exists $idToName{$databaseId}) { }
0 0 elsif ($idToName{$databaseId} ne $standardName) { }
351 0 0 if (not exists $idToAliases{$databaseId}) { }
0 0 elsif ($idToAliases{$databaseId} ne $aliases) { }
363 0 0 unless $annotationsFh->close
388 0 0 if (not defined $max) { }
390 0 0 if ($cardinality != $min)
398 0 0 if ($cardinality < $min) { }
0 0 elsif ($kColumnsToCardinality{$column}[1] ne 'n' and $cardinality > $max) { }
431 0 0 if (not defined $string or $string eq '') { }
441 0 0 if (not defined $entry) { }
0 0 elsif ($entry =~ /^\s+$/) { }
503 3 0 if (exists $args{'annotationFile'}) { }
0 0 elsif (exists $args{'objectFile'}) { }
535 40368 15 if ($$self{$kNameToCount}{$name} > 1 or exists $$self{$kNameToIdMapInsensitive}{uc $name})
575 77 70543 if $_ =~ /^!/
579 0 70543 unless $_
583 156 70387 if $line[$kNotColumn] eq 'NOT'
588 0 70387 if ($databaseId eq '')
597 3 70384 unless exists $$self{$kDatabaseName}
609 0 3 unless $annotationsFh->close
676 57438 12949 if (exists $$self{$kIdToStandardName}{$databaseId})
678 0 57438 if ($$self{$kIdToStandardName}{$databaseId} ne $standardName) { }
726 3228 40689 if exists $seen{$name}
745 277 40412 if (exists $$self{$kNameToIdMapInsensitive}{$ucName} and $$self{$kNameToIdMapInsensitive}{$ucName} ne $databaseId) { }
36 40376 elsif (exists $$self{$kAmbiguousNames}{$ucName}) { }
866 0 106406 unless defined $name
886 438 105968 if (not exists $$self{$kNameToCount}{$name}) { }
137 105831 elsif ($$self{$kNameToCount}{$name} > 1) { }
942 0 2 unless defined $name
944 2 0 if ($self->nameIsAmbiguous($name)) { }
984 1 0 unless (exists $$self{$kAmbiguousNamesSensitive})
990 134 20046 if $$self{$kNameToCount}{$name} > 1
1041 19434 0 if (exists $$self{$kUcIdToId}{uc $databaseId}) { }
1043 19432 2 if (scalar @{$$self{$kUcIdToId}{uc $databaseId};} == 1) { }
1056 2 1 if ($databaseId eq $id)
1065 0 2 unless (defined $mappedId)
1112 18903 531 if (exists $$self{$kGoids}{$mappedId}{$aspect}) { }
1160 0 0 unless exists $$self{$kUcStdNameToStdName}{uc $standardName}
1166 0 0 if (scalar @{$$self{$kUcStdNameToStdName}{uc $standardName};} == 1) { }
1178 0 0 if ($name eq $standardName)
1187 0 0 unless (defined $mappedName)
1249 0 0 if $self->nameIsAmbiguous($name)
1256 0 0 unless defined $databaseId
1298 0 0 unless defined $databaseId
1302 0 0 unless exists $$self{$kUcIdToId}{uc $databaseId}
1308 0 0 if (scalar @{$$self{$kUcIdToId}{uc $databaseId};} == 1) { }
1321 0 0 if ($databaseId eq $id)
1330 0 0 unless (defined $mappedId)
1373 0 0 unless defined $standardName
1377 0 0 unless exists $$self{$kUcStdNameToStdName}{uc $standardName}
1383 0 0 if (scalar @{$$self{$kUcStdNameToStdName}{uc $standardName};} == 1) { }
1396 0 0 if ($standardName eq $name)
1405 0 0 unless (defined $mappedStandardName)
1431 0 0 unless defined $standardName
1469 0 53129 unless defined $name
1471 0 53129 if $self->nameIsAmbiguous($name)
1511 0 0 unless defined $name
1513 0 0 if $self->nameIsAmbiguous($name)
1517 0 0 if (defined $databaseId) { }
1562 0 6471 unless defined $name
1596 0 6471 unless defined $databaseId
1649 0 0 if (not defined $aspect) { }
1655 0 0 if ($self->nameIsDatabaseId($name) and @{$self->goIdsByDatabaseId('databaseId', $name, 'aspect', $aspect);}) { }
0 0 elsif ($self->nameIsStandardName($name) and @{$self->goIdsByStandardName('standardName', $name, 'aspect', $aspect);}) { }
0 0 elsif (not $self->nameIsAmbiguous($name)) { }
1670 0 0 if (defined $goidsRef and @{$goidsRef;})
1680 0 0 if (@{$self->goIdsByDatabaseId('databaseId', $name, 'aspect', $aspect);})
1748 1 2 if (defined $aspect) { }
1855 0 0 if (exists $args{'filename'}) { }
1863 0 0 unless ($fileName =~ /\.obj$/)
1871 0 0 unless nstore($self, $fileName)