Condition Coverage

lib/Mojolicious/Command/migration.pm
Criterion Covered Total %
condition 2 27 7.4


and 3 conditions

line !l l&&!r l&&r condition
157 0 0 0 $self->params->{'to-version'} and $self->params->{'to-version'} > $to_version
234 0 0 0 $self->params->{'to-version'} and $self->params->{'to-version'} > $last_version

or 2 conditions

line l !l condition
4 0 1 $ENV{'MOJO_MIGRATION_TMP'} ||= 'tmp'
5 0 1 $ENV{'MOJO_MIGRATION_SHARE'} ||= 'share'
439 0 0 shift() || (return)
440 0 0 shift() || (return)
538 0 0 $p->{'no_comments'} || 0
539 0 0 $p->{'from'} || 'DBI'

or 3 conditions

line l !l&&r !l&&!r condition
88 0 0 0 $self->params->{'force'} or $self->db_is_empty
240 0 0 0 $self->params->{'to-version'} || $self->deployed->{'version'} - 1
574 0 0 0 $p->{'filename'} || "$$paths{$p->db_->{'type'}}/$p->{'from'}-$p->{'to'}/001_auto.sql"