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 2026 $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 ''
546 0 2026 0 defined $term and not defined $term->id
571 37 0 0 defined $type->def->text and $type->def->text ne ''
1023 0 5 0 defined $instance and not defined $instance->id

or 2 conditions

line l !l condition
401 1 1 $1 || 'nil'
672 0 0 $1 || 'nil'
877 0 0 $1 || 'nil'

or 3 conditions

line l !l&&r !l&&!r condition
310 1021 145 3102 $line =~ /^xref:\s*(.*)/ or $line =~ /^xref_analog:\s*(.*)/
1166 1 3101 $line =~ /^xref:\s*(.*)/ or $line =~ /^xref_analog:\s*(.*)/ or $line =~ /^xref_unknown:\s*(.*)/
897 1 37 $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+"([ \302\260'\#~\w:\\\+\?\{\}\$/\(\)\[\]\.=&!%_,-]+)"$r_db_acc>
569 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*(.*)/
794 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 =~ m<^property_value:\s*(\w+)\s+"([ \302\260'\#~\w:\\\+\?\{\}\$/\(\)\[\]\.=&!%_,-]+)"$r_db_acc>