SeqFeature/Store/DBI/Iterator.pm

filter: Statementstmt 13.3% 2 / 15 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 2 totaltotal 6.6% 2 / 30 CC 5 SCAR 27.3
CC
5
Cov
8%
next_seq
20.0
new
6.0
CRAP 15.3
« SeqFeature/Store/DBI/Pg.pm ↑ Summary SeqFeature/Segment.pm »
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
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table0%0/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
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
BranchTrueFalseTotal
my $sth = $self->{"sth"} or return 0 0 0
21 0 ▶ my $store = $self->{store} or return;
Branch: 1 branch
BranchTrueFalseTotal
my $store = $self->{"store"} or return 0 0 0
22 0 my $obj = $store->_sth2obj($sth);
23 0 ▶ if (!$obj) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($obj) 0 0 0
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;
« SeqFeature/Store/DBI/Pg.pm ↑ Summary SeqFeature/Segment.pm »