Branch Coverage

GO/Model/Term.pm
Criterion Covered Total %
branch 43 160 26.8


line true false branch
128 1415 5805 if (@_)
149 653 2887 if @_
186 0 0 unless $self->subset_list
0 0 if grep {$_ eq $subset;} @{[] unless $self->subset_list;}
202 41 0 if @_
244 8 0 if @_
264 36 160 if @_
282 0 53 unless (ref $dbxref)
284 0 0 unless @rest
289 0 53 unless UNIVERSAL::isa($dbxref, 'GO::Model::Xref')
290 36 17 unless $self->definition_dbxref_list
317 0 0 unless $self->synonym_list
318 0 0 if (grep {$_ eq $str;} @syns)
358 2 9 if (@_)
364 0 5 unless $$sbt{$_}
371 0 0 unless (shift())->{'_synonyms_by_type_idx'}
377 2 156 if (@_) { }
381 100 56 unless $$self{'_synonyms_by_type_idx'}
420 0 0 if (@_)
439 0 0 if (@_)
501 0 173 unless ($ns)
535 0 0 if (@_)
566 0 755 unless (ref $dbxref)
568 0 0 unless @rest
573 0 755 unless UNIVERSAL::isa($dbxref, 'GO::Model::Xref')
574 755 0 unless $self->dbxref_list
604 0 0 if @_
605 0 0 $$self{'is_obsolete'} ? :
616 12 0 if @_
617 12 0 $$self{'is_root'} ? :
639 0 1154 if ($al)
640 0 0 if (!ref($al) eq 'ARRAY')
644 0 0 unless $$self{'association_list'}
649 829 325 unless (defined $$self{'association_list'})
650 0 829 if (not defined $self->apph) { }
656 829 0 unless $$self{'association_list'}
658 0 0 unless ($gene)
661 0 0 unless ($$self{'association_hash'}{$gene->acc})
668 0 0 if ($sort_by and !$$self{'association_list_sort_by'} || $$self{'association_list_sort_by'} ne $sort_by)
671 0 0 ref $sort_by ? :
674 0 0 unless $$self{'association_list'}
682 0 0 if ($sortk eq 'gene_product') { }
0 0 elsif ($sortk eq 'ev_code') { }
737 79 94 unless ($$self{'association_list'})
741 0 173 if (ref $assoc ne 'GO::Model::Association')
748 131 42 unless ($$self{'association_hash'}{$gene->acc})
769 0 0 unless $assoc->isa('GO::Model::Association')
770 0 0 unless ($$self{'selected_association_list'})
786 0 0 unless (defined $$self{'association_list'})
789 0 0 if @_
822 0 0 unless $$self{'association_list'}
0 0 unless (@{[] unless $$self{'association_list'};})
826 0 0 if @_
828 0 0 if (not defined $$self{'n_associations'} and $$self{'association_list'})
833 0 0 unless $self->association_list
836 0 0 unless (defined $$self{'n_associations'})
869 0 0 unless ($ph{$gp->id})
953 0 0 if @_
954 0 0 if (not defined $$self{'n_deep_products'} or $$self{'n_deep_products'} eq 'recount') { }
967 0 0 if @_
968 0 0 if (not defined $$self{'n_deep_products_grouped_by_taxid'} or $$self{'n_deep_products_grouped_by_taxid'} eq 'recount') { }
995 0 0 if @_
996 0 0 if (not defined $$self{'n_products'} or $$self{'n_products'} eq 'recount')
1006 0 0 unless $self->association_hash
1050 0 0 if @_
1056 0 0 if @_
1064 0 0 if @_
1065 0 0 unless ($$self{'_stag'})
1083 0 0 if ($template eq 'shallow')
1093 0 0 if ($template =~ /no.*assoc/)
1102 0 0 if ($template eq 'all')
1118 0 5 unless $self->synonym_list
1119 5 0 unless $self->dbxref_list
1120 0 5 if ($suppress) { }
1121 0 0 unless (ref $suppress)
1133 5 0 if ($escape)
1151 0 5 $obs_l && @$obs_l ? :
0 5 @xrefs ? :
1 4 @syns ? :
1167 0 0 unless $self->dbxref_list