Branch Coverage

blib/lib/App/Sqitch/Role/DBIEngine.pm
Criterion Covered Total %
branch 18 106 16.9


line true false branch
61 0 0 $_[1] ? :
100 1 1 if $self->_no_table_error
117 1 1 if $self->_no_table_error and not $self->initialized
135 0 0 $with_hash ? :
172 1 2 if $self->_no_table_error and not $self->initialized
173 1 1 if $self->_no_column_error
175 1 0 unless my $state = &try(sub {
177 0 0 unless (ref $state->{'tags'})
205 0 0 unless my $row = $sth->fetchrow_hashref
231 0 0 unless my $row = $sth->fetchrow_hashref
243 0 0 if (my $d = delete $p{'direction'})
244 0 0 $d =~ /^DESC/i ? :
0 0 $d =~ /^ASC/i ? :
264 0 0 if (my $e = delete $p{'event'})
271 0 0 @wheres ? :
277 0 0 if (exists $p{'limit'} or exists $p{'offset'})
279 0 0 if (@{$exprs;})
281 0 0 unless $values
285 0 0 if %p
312 0 0 unless my $row = $sth->fetchrow_hashref
318 0 0 unless ref $row->{$col}
334 3 3 if ($lim)
338 2 4 if ($off)
339 1 1 if (not $lim and $lim = $self->_limit_default)
369 0 0 if (@{$res;}) { }
372 0 0 if (defined $uri and not defined $reg_uri) { }
0 0 elsif (not defined $uri and defined $reg_uri) { }
0 0 elsif (defined $uri and defined $reg_uri) { }
385 0 0 if $uri ne $reg_uri
396 0 0 if (defined $uri)
408 0 0 if @{$res;}
535 0 0 if $self->_unique_error
542 0 0 if (my(@deps) = $change->dependencies)
560 0 0 if (my(@tags) = $change->tags)
682 0 0 unless my(@tags) = $change->tags
742 0 0 unless $dbh->selectcol_arrayref("SELECT tag FROM tags WHERE change_id = ?", undef, $cid)
785 0 0 unless (ref $_->{'tags'})
808 0 0 unless (ref $_->{'tags'})
841 0 0 unless (ref $change->{'tags'})
849 0 0 $offset > 0 ? :
857 0 0 unless $offset
876 0 0 unless $offset
899 0 0 unless (ref $change->{'tags'})
921 0 1 if (my $cid = $p{'change_id'})
931 0 1 if (my $change = $p{'change'})
932 0 0 if (my $tag = $p{'tag'})
934 0 0 if $tag eq "ROOT"
937 0 0 if $tag eq "HEAD"
940 0 0 $self->_can_limit ? :
964 0 0 if $p{'first'}
968 0 1 if (my $tag = $p{'tag'})
970 0 0 if $tag eq "HEAD"
973 0 0 if $tag eq "ROOT"