| 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 || {}
MC/DC0%0/1
$rh_args || {}
$rh_args
Truth table50%1/2
A
A= $rh_args
| |||||||||||||
| 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
| |||||||||||||
| 16 | |||||||||||||
| 17 | 5 | my $rs = $self->{rs}; | |||||||||||
| 18 | |||||||||||||
| 19 | 5 | ▶ | if ($rs->{inflate}) { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 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; | |||||||||||