Branch Coverage

blib/lib/App/mimi/db.pm
Criterion Covered Total %
branch 10 18 55.5


line true false branch
15 0 39 unless $self->{'dbh'} = $params{'dbh'}
30 7 18 unless $rv
40 19 0 if ($driver eq 'SQLite') { }
0 0 elsif ($driver eq 'Pg') { }
67 0 3 unless $last_migration
69 0 3 unless $self->{'dbh'}->do("UPDATE mimi SET status = 'success', error = '' WHERE id=$last_migration->{'id'}")
83 0 19 unless $self->{'dbh'}->do("INSERT INTO mimi ($columns) VALUES ($values)")
94 0 29 unless my $rv = $sth->execute
97 8 21 unless $row