Condition Coverage

blib/lib/Mojo/mysql/Migrations.pm
Criterion Covered Total %
condition 1 59 1.6


and 3 conditions

line !l l&&!r l&&r condition
66 0 0 0 $version and not $last =~ /^\s*$/su
72 0 0 0 $version and not $last =~ /^\s*$/su
79 0 0 0 $version and not $last =~ /^\s*$/su
95 0 0 0 $target != 0 and not $up->{$target}
112 0 0 0 $_ <= $target and $_ > $active
119 0 0 0 $_ > $target and $_ <= $active
143 0 0 0 $results and my $next = $results->array

or 2 conditions

line l !l condition
9 0 18 $ENV{'MOJO_MIGRATIONS_DEBUG'} || 0
66 0 0 $migrations->{$way}{$version} //= []
72 0 0 $migrations->{$way}{$version} //= []
79 0 0 $migrations->{$way}{$version} //= []

or 3 conditions

line l !l&&r !l&&!r condition
18 0 0 0 $class //= caller
0 0 0 $name // $self->name
33 0 0 0 $sql =~ /^(\s+)/su or $sql =~ /^(\w+)/u
0 0 0 $sql =~ /^--.*(?:\n|\z)/pu or $sql =~ /^\#.*(?:\n|\z)/pu
0 0 0 $sql =~ /^--.*(?:\n|\z)/pu or $sql =~ /^\#.*(?:\n|\z)/pu or $sql =~ m[^/\*(?:[^\*]|\*[^/])*(?:\*/|\*\z|\z)]pu
0 0 0 $sql =~ /^--.*(?:\n|\z)/pu or $sql =~ /^\#.*(?:\n|\z)/pu or $sql =~ m[^/\*(?:[^\*]|\*[^/])*(?:\*/|\*\z|\z)]pu or $sql =~ /^'(?:[^'\\]*|\\(?:.|\n)|'')*(?:'|\z)/pu
0 0 0 $sql =~ /^--.*(?:\n|\z)/pu or $sql =~ /^\#.*(?:\n|\z)/pu or $sql =~ m[^/\*(?:[^\*]|\*[^/])*(?:\*/|\*\z|\z)]pu or $sql =~ /^'(?:[^'\\]*|\\(?:.|\n)|'')*(?:'|\z)/pu or $sql =~ /^"(?:[^"\\]*|\\(?:.|\n)|"")*(?:"|\z)/pu
0 0 0 $sql =~ /^--.*(?:\n|\z)/pu or $sql =~ /^\#.*(?:\n|\z)/pu or $sql =~ m[^/\*(?:[^\*]|\*[^/])*(?:\*/|\*\z|\z)]pu or $sql =~ /^'(?:[^'\\]*|\\(?:.|\n)|'')*(?:'|\z)/pu or $sql =~ /^"(?:[^"\\]*|\\(?:.|\n)|"")*(?:"|\z)/pu or $sql =~ /^`(?:[^`]*|``)*(?:`|\z)/pu
91 0 0 0 $target //= $latest
142 0 0 0 $create or $results