Condition Coverage

blib/lib/SQL/Translator/Schema/Table.pm
Criterion Covered Total %
condition 24 31 77.4


and 2 conditions

line l !l condition
635 1 1 scalar(@{$fk{$table1->name};} == 1) and scalar(@{$fk{$table2->name};} == 1)
0 1 scalar(@{$fk{$table1->name};} > 1) and scalar(@{$fk{$table2->name};} == 1)
1 0 scalar(@{$fk{$table1->name};} == 1) and scalar(@{$fk{$table2->name};} > 1)
0 1 scalar(@{$fk{$table1->name};} > 1) and scalar(@{$fk{$table2->name};} > 1)

and 3 conditions

line !l l&&!r l&&r condition
105 293 189 78 $pk and $constraint->type eq "PRIMARY KEY"
171 0 1 2 $self->_has_constraints and grep {$_->name eq $constraint_name;} @{$self->_constraints;}
250 0 1 2 $self->_has_indices and grep {$_->name eq $index_name;} @{$self->_indices;}
368 0 1 2 $self->_has_fields and exists $self->_fields->{$field_name}
627 0 1 2 defined $fk{$table1->name} and defined $fk{$table2->name}

or 2 conditions

line l !l condition
320 939 262 &max(keys %$existing_order) || 0

or 3 conditions

line l !l&&r !l&&!r condition
588 5 2 2 $field->is_primary_key or $field->is_foreign_key
1003 2 3 9 $_->is_foreign_key || $_->is_primary_key