| 1 | package Bio::DB::SeqFeature::Store::DBI::Iterator; | ||||||||||||||||||||
| 2 | 3 | $Bio::DB::SeqFeature::Store::DBI::Iterator::VERSION = '1.7.5'; | |||||||||||||||||||
| 3 | |||||||||||||||||||||
| 4 | =head1 NAME | ||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | Bio::DB::SeqFeature::Store::DBI::Iterator - utility methods for creating and iterating over SeqFeature records | ||||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | =cut | ||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | 0 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 11 | 0 | my $class = shift; | |||||||||||||||||||
| 12 | 0 | my ($sth,$store) = @_; | |||||||||||||||||||
| 13 | 0 | ▶ | return bless {sth => $sth, | ||||||||||||||||||
|
Condition0%0/3
ref $class || $class
MC/DC0%0/2
ref $class || $class
ref $class
$class
Truth table0%0/3
A || B
A= ref $classB= $class
| |||||||||||||||||||||
| 14 | store => $store | ||||||||||||||||||||
| 15 | },ref($class) || $class; | ||||||||||||||||||||
| 16 | } | ||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | 0 | ▶ | sub next_seq { | ||||||||||||||||||
|
Subroutine
next_seq: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||||||||||
| 19 | 0 | my $self = shift; | |||||||||||||||||||
| 20 | 0 | ▶ | my $sth = $self->{sth} or return; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 21 | 0 | ▶ | my $store = $self->{store} or return; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 22 | 0 | my $obj = $store->_sth2obj($sth); | |||||||||||||||||||
| 23 | 0 | ▶ | if (!$obj) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 24 | 0 | $self->{sth}->finish; | |||||||||||||||||||
| 25 | 0 | undef $self->{sth}; | |||||||||||||||||||
| 26 | 0 | undef $self->{store}; | |||||||||||||||||||
| 27 | 0 | return; | |||||||||||||||||||
| 28 | } | ||||||||||||||||||||
| 29 | 0 | return $obj; | |||||||||||||||||||
| 30 | } | ||||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | 3 | 1; | |||||||||||||||||||