Branch Coverage

blib/lib/App/Sqitch/Role/DBIEngine.pm
Criterion Covered Total %
branch 18 110 16.3


line true false branch
84 1 1 if $self->_no_table_error
101 1 1 if $self->_no_table_error and not $self->initialized
119 0 0 $with_hash ? :
156 1 2 if $self->_no_table_error and not $self->initialized
157 1 1 if $self->_no_column_error
159 1 0 unless my $state = &try(sub {
161 0 0 unless (ref $state->{'tags'})
162 0 0 $state->{'tags'} ? :
189 0 0 unless my $row = $sth->fetchrow_hashref
215 0 0 unless my $row = $sth->fetchrow_hashref
227 0 0 if (my $d = delete $p{'direction'})
228 0 0 $d =~ /^DESC/i ? :
0 0 $d =~ /^ASC/i ? :
248 0 0 if (my $e = delete $p{'event'})
255 0 0 @wheres ? :
261 0 0 if (exists $p{'limit'} or exists $p{'offset'})
263 0 0 if (@{$exprs;})
265 0 0 unless $values
269 0 0 if %p
296 0 0 unless my $row = $sth->fetchrow_hashref
313 3 3 if ($lim)
317 2 4 if ($off)
318 1 1 if (not $lim and $lim = $self->_limit_default)
348 0 0 if (@{$res;}) { }
351 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) { }
364 0 0 if $uri ne $reg_uri
375 0 0 if (defined $uri)
387 0 0 if @{$res;}
513 0 0 if (my(@deps) = $change->dependencies)
531 0 0 if (my(@tags) = $change->tags)
653 0 0 unless my(@tags) = $change->tags
713 0 0 unless $dbh->selectcol_arrayref("SELECT tag FROM tags WHERE change_id = ?", undef, $cid)
756 0 0 unless (ref $_->{'tags'})
757 0 0 $_->{'tags'} ? :
779 0 0 unless (ref $_->{'tags'})
780 0 0 $_->{'tags'} ? :
812 0 0 unless (ref $change->{'tags'})
813 0 0 $change->{'tags'} ? :
820 0 0 $offset > 0 ? :
828 0 0 unless $offset
847 0 0 unless $offset
870 0 0 unless (ref $change->{'tags'})
871 0 0 $change->{'tags'} ? :
892 0 1 if (my $cid = $p{'change_id'})
902 0 1 if (my $change = $p{'change'})
903 0 0 if (my $tag = $p{'tag'})
905 0 0 if $tag eq "ROOT"
908 0 0 if $tag eq "HEAD"
911 0 0 $self->_can_limit ? :
935 0 0 if $p{'first'}
939 0 1 if (my $tag = $p{'tag'})
941 0 0 if $tag eq "HEAD"
944 0 0 if $tag eq "ROOT"