Branch Coverage

GO/Parsers/go_ont_parser.pm
Criterion Covered Total %
branch 64 86 74.4


line true false branch
74 3 63 if ($code eq '|')
77 2 64 if ($code eq '*')
80 0 66 if ($code eq '?')
87 0 14 unless shift()
135 8 336 if ($line =~ /^\!type:\s*(\S+)\s+(\S+)/)
139 0 8 if ($name eq 'isa')
142 0 8 if ($name eq 'partof')
145 6 2 unless $code eq '%'
151 31 305 if $line =~ /^\s*\!/
152 0 305 if $line eq '\\$'
153 0 305 if $line eq ''
154 0 305 if $line =~ /^\s*\$\s*$/
169 2 271 if (defined $obs_depth and $obs_depth >= $indent)
177 0 305 if ($body =~ /^(\@\w+\@)(.*)/) { }
196 0 327 if ($usc)
199 2 325 if ($name =~ /^obsolete/i and $i == 0)
202 4 323 if ($name eq 'Gene_Ontology')
205 6 321 if (defined $obs_depth)
210 10 317 if ($indent < 2 and $is_go) { }
4 313 elsif ($indent < 1) { }
0 313 elsif (not $self->handler->{'ontology_type'}) { }
211 10 0 unless $self->force_namespace
215 4 0 unless $self->force_namespace
225 0 327 unless ($pxrefstr)
233 305 22 if ($i == 0)
235 2 303 if ($currxref =~ /\s/)
241 2 303 if ($prevname and $prevname ne $name)
247 8 295 if ($prevname and $indent)
252 6 289 unless $indent
257 4 291 if $is_obs
258 6 289 unless $indent
259 295 0 if $self->handler->{'ontology_type'}
270 295 22 if ($i == 0) { }
277 26 38 if ($db eq 'synonym') { }
305 0 22 if (not $pxref) { }
314 288 7 if (@stack) { }
317 0 288 if (not $obj) { }
331 5 6 if $rtypename eq 'is_a'
348 273 37 if ($rchar eq 'is_a' or $rchar eq 'isa') { }
363 0 327 unless shift()
366 327 0 if ($typemap{$ch}) { }
0 0 elsif ($typemap{'\\' . $ch}) { }
0 0 elsif ($ch =~ /^\@(\w+)\@/) { }