Condition Coverage

blib/lib/OBO/Parser/OBOParser.pm
Criterion Covered Total %
condition 42 66 63.6


and 3 conditions

line !l l&&!r l&&r condition
71 0 0 9 defined $chunks[0] and $chunks[0] =~ /^format-version:\s*(.*)/
163 0 1 4 defined $sc and $sc =~ s/\s//
294 9 117 2025 $stanza and $stanza =~ /\[Term\]/
9 5 112 $stanza and $stanza =~ /\[Typedef\]/
9 0 5 $stanza and $stanza =~ /\[Instance\]/
9 0 0 $stanza and $stanza =~ /\[Annotation\]/
314 404 0 0 defined $term->def->text and $term->def->text ne ''
543 0 2025 0 defined $term and not defined $term->id
568 37 0 0 defined $type->def->text and $type->def->text ne ''
1016 0 5 0 defined $instance and not defined $instance->id

or 2 conditions

line l !l condition
401 1 1 $1 || 'nil'
669 0 0 $1 || 'nil'
874 0 0 $1 || 'nil'

or 3 conditions

line l !l&&r !l&&!r condition
310 1015 145 3100 $line =~ /^xref:\s*(.*)/ or $line =~ /^xref_analog:\s*(.*)/
1160 1 3099 $line =~ /^xref:\s*(.*)/ or $line =~ /^xref_analog:\s*(.*)/ or $line =~ /^xref_unknown:\s*(.*)/
897 1 35 $line =~ m[^relationship:\s*([\w/]+)$r_db_acc$r_comments] or $line =~ /^relationship:\s*$r_db_acc$r_db_acc$r_comments/
1 5 1 $line =~ /^property_value:\s*(\w+)$r_db_acc/ or $line =~ m<^property_value:\s*(\w+)\s+"([ '\#~\w:\\\+\?\{\}\$/\(\)\[\]\.=&!%_,-]+)"$r_db_acc>
566 71 3 40 $line =~ /^xref:\s*(.*)/ or $line =~ /^xref_analog:\s*(.*)/
74 0 40 $line =~ /^xref:\s*(.*)/ or $line =~ /^xref_analog:\s*(.*)/ or $line =~ /^xref_unk:\s*(.*)/
791 1 0 13 $line =~ /^xref:\s*(.*)/ or $line =~ /^xref_analog:\s*(.*)/
1 0 13 $line =~ /^xref:\s*(.*)/ or $line =~ /^xref_analog:\s*(.*)/ or $line =~ /^xref_unknown:\s*(.*)/
0 0 8 $line =~ m[^relationship:\s*([\w/]+)$r_db_acc$r_comments] or $line =~ /^relationship:\s*$r_db_acc$r_db_acc$r_comments/
4 4 0 $line =~ /^property_value:\s*(\w+)$r_db_acc/ or $line =~ /^property_value:\s*(\w+)\s+"(\w+)"$r_db_acc/