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
154 0 0 0 $self->params->{'to-version'} and $self->params->{'to-version'} > $to_version
231 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'
436 0 0 shift() || (return)
437 0 0 shift() || (return)
529 0 0 $p->{'no_comments'} || 0
530 0 0 $p->{'from'} || 'DBI'

or 3 conditions

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