Branch Coverage

blib/lib/DBIx/Class/Storage/DBI/Cursor.pm
Criterion Covered Total %
branch 29 42 69.0


line true false branch
82 0 0 unless my $self = delete $cursor_registry{$_}
108 17 6125 if $self->{'_done'}
112 2 9 if ($self->{'attrs'}{'software_limit'} and $self->{'attrs'}{'rows'} and ($self->{'_pos'} || 0) >= $self->{'attrs'}{'rows'})
117 2 0 if ($sth = $self->sth)
119 2 0 if $sth->FETCH('Active')
125 2709 3414 unless ($sth = $self->sth)
131 2 4 if ($self->{'attrs'}{'software_limit'} and $self->{'attrs'}{'offset'})
138 5270 842 if ($sth->fetch) { }
167 1 0 if ($self->{'attrs'}{'software_limit'} and $self->{'attrs'}{'offset'} || $self->{'attrs'}{'rows'})
174 0 1683 if ($sth = $self->sth)
176 0 0 if not $self->{'_done'} and $sth->FETCH('Active')
195 5835 7808 if (@_) { }
3416 8784 elsif ($self->{'sth'} and not $self->{'_done'}) { }
199 2698 3137 if $_[0]
205 0 3416 if (do { $self->{'_pid'} != $$ })
212 0 3416 if ($invalidate_handle_reason)
214 0 0 if $self->{'_pos'}
231 616 2521 if $_[0]{'sth'}
237 0 3788 if &detected_reinvoked_destructor
239 2082 1706 if $_[0]{'sth'}
256 1854 844 if $self->{'sth'} and not &try(sub { not $self->{'sth'}->FETCH('Active'); } )