Wizard/Cursor.pm

filter: Statementstmt 88.2% 15 / 17 Branchbran 75.0% 3 / 4 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 2 totaltotal 76.6% 23 / 30 CC 4 SCAR 8.0
CC
4
Cov
83%
next
3.1
new
2.1
BEGIN
1.0
CRAP 2.2
« Wizard/DB.pm ↑ Summary Wizard.pm »
1 package DBIx::Wizard::Cursor;
2  
3 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 11 ▶use DBIx::Wizard::ResultSet;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod undocumented
7 4 my ($class, $rh_args) = @_;
8 4 ▶ return bless($rh_args || {}, $class);
Condition50%1/2
$rh_args || {}
l!l
40
MC/DC0%0/1
$rh_args || {}
$rh_args
Truth table50%1/2
A
A= $rh_args
Aresult
11
00
9 }
10  
11 7 ▶sub next {
Subroutine next: called CC=3 SCAR=11.4
Pod undocumented
12 7 my $self = shift;
13  
14 7 my $rh_row = $self->{sth}->fetchrow_hashref();
15 7 ▶ return unless $rh_row;
Branch: 1 branch
BranchTrueFalseTotal
unless $rh_row 2 5 7
16  
17 5 my $rs = $self->{rs};
18  
19 5 ▶ if ($rs->{inflate}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($rs->{"inflate"}) 0 5 5
20 0 my $ic = $rs->_resolve_inflate_class;
21 0 DBIx::Wizard::ResultSet::_inflate_time_objects([$rh_row], $rs->{db}, $rs->{table}, $ic);
22 }
23  
24 5 return $rh_row;
25 }
26  
27 11 1;
« Wizard/DB.pm ↑ Summary Wizard.pm »