Branch Coverage

blib/lib/DBIx/Diff/Schema.pm
Criterion Covered Total %
branch 61 90 67.7


line true false branch
85 4 26 if ($c1->{'TYPE_NAME'} ne $c2->{'TYPE_NAME'})
90 4 22 if ($c1->{'NULLABLE'} xor $c2->{'NULLABLE'})
94 0 26 if (defined $c1->{'CHAR_OCTET_LENGTH'})
95 0 0 if ($c1->{'CHAR_OCTET_LENGTH'} != $c2->{'CHAR_OCTET_LENGTH'})
100 6 20 if (defined $c1->{'DECIMAL_DIGITS'})
101 0 6 if ($c1->{'DECIMAL_DIGITS'} != $c2->{'DECIMAL_DIGITS'})
106 0 26 if (($c1->{'mysql_is_auto_increment'} // 0) != ($c2->{'mysql_is_auto_increment'} // 0))
127 30 5 if (defined $c2) { }
129 8 22 if %$tres
137 30 9 if (defined $c1) { }
144 5 6 if @added
145 5 6 if @deleted
146 4 7 if %modified
179 6 0 &Scalar::Util::blessed($dbh1) ? :
6 0 defined $dbh1 ? :
6 0 if defined $dbh1 ? 1 : ($arg_err //= 'Required but not specified', 0)
0 6 if ($arg_err)
180 6 0 &Scalar::Util::blessed($dbh2) ? :
6 0 defined $dbh2 ? :
6 0 if defined $dbh2 ? 1 : ($arg_err //= 'Required but not specified', 0)
0 6 if ($arg_err)
181 6 0 !ref($table1) ? :
6 0 defined $table1 ? :
6 0 if defined $table1 ? 1 : ($arg_err //= 'Required but not specified', 0)
0 6 if ($arg_err)
182 6 0 !ref($table2) ? :
6 0 defined $table2 ? :
6 0 if defined $table2 ? 1 : ($arg_err //= 'Required but not specified', 0)
0 6 if ($arg_err)
186 1 5 unless has_table($dbh1, $table1)
188 1 4 unless has_table($dbh2, $table2)
256 5 0 &Scalar::Util::blessed($dbh1) ? :
5 0 defined $dbh1 ? :
5 0 if defined $dbh1 ? 1 : ($arg_err //= 'Required but not specified', 0)
0 5 if ($arg_err)
257 5 0 &Scalar::Util::blessed($dbh2) ? :
5 0 defined $dbh2 ? :
5 0 if defined $dbh2 ? 1 : ($arg_err //= 'Required but not specified', 0)
0 5 if ($arg_err)
267 7 3 if (grep {$_ eq $t;} @tables2) { }
270 3 4 if %$tres
276 7 3 if (grep {$_ eq $t;} @tables1) { }
283 3 2 if @added
284 3 2 if @deleted
285 3 2 if %modified