Branch Coverage

blib/lib/OBO/Parser/GoaParser.pm
Criterion Covered Total %
branch 41 60 68.3


line true false branch
56 0 4 unless open my $FH, '<', $in_file_path
60 2 2 if ($map)
63 1 1 if ($ids[0] =~ /\AGO:\d{7}\z/msx) { }
1 0 elsif ($ids[0] =~ /\A\w{6}\z/msx) { }
72 0 2 if $verbose
80 0 29 if @fields != 15
82 29 0 $goaAssoc ? :
83 29 0 if $goaAssoc
86 0 4 if $verbose
87 4 0 !$goaAssocSet->is_empty ? :
109 0 2 unless $onto and $data
113 1 1 if ($parent_protein_name)
124 0 10 unless $$onto{'RELATIONSHIP_TYPES'}{$_}
134 0 16 if $go_id eq 'GO:0008150'
136 10 6 unless ($go_term)
138 0 10 unless $go_term
145 0 16 unless my $ncbi_id = $1
148 2 14 unless ($taxon)
150 0 2 unless $taxon
159 2 14 unless ($protein)
161 1 1 unless ($protein)
162 1 0 if ($parent_protein_name) { }
182 0 16 if ($aspect eq 'F') { }
14 2 elsif ($aspect eq 'C') { }
2 0 elsif ($aspect eq 'P') { }
205 16 13 if ($map)
206 8 8 if ($map_source eq 'GO')
207 0 8 unless $$map{$fields[4]}
209 8 8 if ($map_source eq 'UniProtKB')
210 0 8 unless $$map{$fields[1]}