Condition Coverage

blib/lib/DBIx/QuickORM/Link.pm
Criterion Covered Total %
condition 4 100 4.0


and 3 conditions

line !l l&&!r l&&r condition
33 0 0 24 ref $self->{'local_columns'} eq "ARRAY" and @{$self->{'local_columns'};} >= 1
34 0 0 24 ref $self->{'other_columns'} eq "ARRAY" and @{$self->{'other_columns'};} >= 1
174 0 0 0 ref $local_columns eq "ARRAY" and @$local_columns
175 0 0 0 ref $other_columns eq "ARRAY" and @$other_columns

or 2 conditions

line l !l condition
38 24 0 $self->{'aliases'} //= []
77 0 0 $params{'local_columns'} //= [@{$self->{'local_columns'};}]
78 0 0 $params{'other_columns'} //= [@{$self->{'other_columns'};}]
79 0 0 $params{'aliases'} //= [@{$self->{'aliases'};}]
126 0 0 $link // {}

or 3 conditions

line l !l&&r !l&&!r condition
36 0 24 0 $self->{'key'} //= column_key(@{$$self{"local_columns"};})
80 0 0 0 $params{'unique'} //= $self->{'unique'}
81 0 0 0 $params{'key'} //= column_key(@{$params{"local_columns"};})
113 0 0 0 $link //= delete $params{'link'}
114 0 0 0 $schema //= delete $params{'schema'}
115 0 0 0 $connection //= delete $params{'connection'}
116 0 0 0 $source //= delete $params{'source'}
117 0 0 0 $schema //= $connection->schema
123 0 0 0 $out // croak("No link to table '$${link}' found")
129 0 0 0 delete $link->{'other_table'} // delete $link->{'table'}
132 0 0 0 delete $link->{'local_columns'} // delete $link->{'local_fields'}
0 0 0 (delete $link->{'local_columns'} // delete $link->{'local_fields'}) // delete $link->{'local'}
133 0 0 0 delete $link->{'other_columns'} // delete $link->{'other_fields'}
0 0 0 (delete $link->{'other_columns'} // delete $link->{'other_fields'}) // delete $link->{'other'}
149 0 0 0 $local_columns //= $val
150 0 0 0 $other_columns //= $val
154 0 0 0 delete $link->{'local_columns'} // delete $link->{'local_fields'}
0 0 0 (delete $link->{'local_columns'} // delete $link->{'local_fields'}) // delete $link->{'local'}
155 0 0 0 delete $link->{'other_columns'} // delete $link->{'other_fields'}
0 0 0 (delete $link->{'other_columns'} // delete $link->{'other_fields'}) // delete $link->{'other'}
159 0 0 0 $local_table //= $source ? $source->name : croak("No local_table or source provided")
168 0 0 0 $fields // croak("no local_columns provided")
0 0 0 $local_columns //= $fields // croak("no local_columns provided")
169 0 0 0 $fields // croak("no other_columns provided")
0 0 0 $other_columns //= $fields // croak("no other_columns provided")
178 0 0 0 $unique //= $other->unique->{column_key(@$other_columns)} ? 1 : 0