Branch Coverage

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


line true false branch
80 0 0 unless my $self = delete $cursor_registry{$_}
111 17 6141 if $self->{'_done'}
115 2 9 if ($self->{'attrs'}{'software_limit'} and $self->{'attrs'}{'rows'} and ($self->{'_pos'} || 0) >= $self->{'attrs'}{'rows'})
120 2 0 if ($sth = $self->sth)
122 2 0 if $sth->FETCH('Active')
128 2726 3413 unless ($sth = $self->sth)
134 2 4 if ($self->{'attrs'}{'software_limit'} and $self->{'attrs'}{'offset'})
141 5286 840 if ($sth->fetch) { }
170 1 0 if ($self->{'attrs'}{'software_limit'} and $self->{'attrs'}{'offset'} || $self->{'attrs'}{'rows'})
177 0 1710 if ($sth = $self->sth)
179 0 0 if not $self->{'_done'} and $sth->FETCH('Active')
200 5865 7851 if (@_) { }
3415 8872 elsif ($self->{'sth'} and not $self->{'_done'}) { }
204 2713 3152 if $_[0]
210 0 3415 if (do { $self->{'_pid'} != $$ })
217 0 3415 if ($invalidate_handle_reason)
219 0 0 if $self->{'_pos'}
236 617 2535 if $_[0]{'sth'}
247 0 3833 if &detected_reinvoked_destructor
249 2096 1737 if $_[0]{'sth'}
280 1871 842 if $self->{'sth'} and not &dbic_internal_try(sub { not $self->{'sth'}->FETCH('Active'); } )