Branch Coverage

blib/lib/Bio/Metabolic/Reaction.pm
Criterion Covered Total %
branch 26 42 61.9


line true false branch
143 1 5 ref $proto eq 'Bio::Metabolic::Reaction' ? :
147 5 1 if defined $name
148 0 6 unless defined $attr{'name'}
154 1 5 if (defined $outsubs and ref $outsubs eq 'ARRAY' and join('', @$outsubs) =~ /^[0-9\-\.]*$/) { }
4 1 elsif (defined $insubs) { }
160 0 1 ref $insubs eq 'Bio::Metabolic::Substrate::Cluster' ? :
166 0 1 unless @slist == @$outsubs
194 0 6 unless defined $attr{'substrates'} and defined $attr{'stoichiometry'}
197 0 6 @_ ? :
227 0 1 if @_
240 0 13 if @_
256 0 54 if @_
282 5 8 $self->st_coefficient($_) < 0 ? :
298 8 5 $self->st_coefficient($_) > 0 ? :
316 0 4 unless $dir == -1 or $dir == 1
318 2 2 $dir == -1 ? :
362 0 0 @{$$subsdir{'-1'};} ? :
366 0 0 @{$$subsdir{'1'};} ? :
436 0 1 unless @sl1 == @sl2
439 0 3 unless $sl2->has($sub)
440 0 3 unless $r1->st_coefficient($sub) == $r2->st_coefficient($sub)