Condition Coverage

blib/lib/App/migrate.pm
Criterion Covered Total %
condition 28 37 75.6


and 3 conditions

line !l l&&!r l&&r condition
120 1 8 4 @op and {after_downgrade => 1, downgrade => 1}->{$op[0]{'op'}} || {RESTORE => 1}->{$op[0]{'op'}}

or 2 conditions

line l !l condition
53 32 0 $path // []
81 0 11 $self->{'paths'}{$prev_version}{$next_version} ||= [grep({$_->{'type'} eq 'before_upgrade';} @steps), grep({$_->{'type'} eq 'upgrade';} @steps), {'type', 'VERSION', 'version', $next_version}]
93 0 11 $self->{'paths'}{$next_version}{$prev_version} ||= [$restore ? $restore : (grep({$_->{'type'} eq 'downgrade';} reverse(@steps)), grep({$_->{'type'} eq 'after_downgrade';} reverse(@steps))), {'type', 'VERSION', 'version', $prev_version}]
246 25 0 $self->{'paths'}{$from[-1]} || {}
273 0 0 $ENV{'SHELL'} // '/bin/sh'

or 3 conditions

line l !l&&r !l&&!r condition
34 0 3 0 ref $class || $class
120 9 2 1 {after_downgrade => 1, downgrade => 1}->{$op[0]{'op'}} || {RESTORE => 1}->{$op[0]{'op'}}
216 16 2 30 $step->{'type'} eq 'BACKUP' or $step->{'type'} eq 'RESTORE'
18 17 13 $step->{'type'} eq 'BACKUP' or $step->{'type'} eq 'RESTORE' or $step->{'type'} eq 'VERSION'
283 15 8 5 {before_upgrade => 1, upgrade => 1}->{$t->{'op'}} or {after_downgrade => 1, downgrade => 1}->{$t->{'op'}}
293 1 0 1 {before_upgrade => 1, upgrade => 1}->{$t1->{'op'}} or {after_downgrade => 1, downgrade => 1}->{$t1->{'op'}}
320 3 7 21 not $t->{'args'}[0] =~ /\A\S+\z/ms or $t->{'args'}[0] =~ m([\x00-\x1F\x7F /?*`"'\\])ms
338 14 5 4 @{$t->{'args'};} or $t->{'data'} =~ /\S/ms