Branch Coverage

blib/lib/PomBase/Chobo/ParseOBO.pm
Criterion Covered Total %
branch 46 60 76.6


line true false branch
62 0 4 if ($current->{'is_obsolete'} and $current->{'is_relationshiptype'})
66 0 72 unless (defined $current->{'id'})
71 4 68 if ($current->{'is_obsolete'})
81 34 38 unless (defined $current->{'namespace'})
87 4 30 if ($current->{'namespace'} eq "ro")
94 47 25 if ($current->{'is_a'})
106 35 37 if ($current->{'synonym'})
113 2 58 if ($seen_synonym and lc $seen_synonym->{'scope'} eq 'exact') { }
151 0 11 unless (defined $filename)
156 0 11 unless (defined $ontology_data)
168 0 11 unless my $fh = "FileHandle"->new($filename, "r")
179 74 745 if length $line == 0
181 72 673 if ($line =~ /^\[(.*)\]$/) { }
184 61 11 if (defined $current)
190 10 62 if ($stanza_type eq 'Typedef') { }
193 0 62 if ($stanza_type ne "Term")
202 576 97 if ($current) { }
204 576 0 if (@bits == 2) { }
211 2 574 if ($field_value =~ /\}$/)
219 430 146 if (defined $field_conf)
220 201 229 if (defined $field_conf->{'process'})
224 0 201 if ($@)
228 430 0 if (defined $field_value)
229 260 170 if (defined $field_conf->{'type'} and $field_conf->{'type'} eq 'SINGLE' || $field_conf->{'type'} eq 'SINGLE_HASH') { }
242 97 0 if ($line =~ /^(.+?):\s*(.*)/) { }
245 34 63 if ($interesting_metadata{$key})
246 0 34 if (defined $metadata{$key}) { }
259 11 0 if (defined $current)
263 0 11 unless close $fh
269 0 11 if ($@)