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 6131 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 2715 3414 unless ($sth = $self->sth)
131 2 4 if ($self->{'attrs'}{'software_limit'} and $self->{'attrs'}{'offset'})
138 5278 840 if ($sth->fetch) { }
167 1 0 if ($self->{'attrs'}{'software_limit'} and $self->{'attrs'}{'offset'} || $self->{'attrs'}{'rows'})
174 0 1694 if ($sth = $self->sth)
176 0 0 if not $self->{'_done'} and $sth->FETCH('Active')
195 5851 7825 if (@_) { }
3416 8818 elsif ($self->{'sth'} and not $self->{'_done'}) { }
199 2704 3147 if $_[0]
205 0 3416 if (do { $self->{'_pid'} != $$ })
212 0 3416 if ($invalidate_handle_reason)
214 0 0 if $self->{'_pos'}
231 617 2530 if $_[0]{'sth'}
237 0 3804 if &detected_reinvoked_destructor
239 2087 1717 if $_[0]{'sth'}
256 1862 842 if $self->{'sth'} and not &try(sub { not $self->{'sth'}->FETCH('Active'); } )