Condition Coverage

blib/lib/DBIx/Class/Schema/Loader/RelBuilder.pm
Criterion Covered Total %
condition 33 56 58.9


and 3 conditions

line !l l&&!r l&&r condition
305 224 0 328 $nullable and not defined $attrs->{'join_type'}
537 96 95 295 $_->{'method'} eq "has_many" and $_->{'args'}[1] eq $link_class
564 77 0 32 &array_eq([sort(&uniq(@{$class[0]{"from_link_cols"};}, @{$class[1]{"from_link_cols"};}))], [sort(@link_table_primary_cols)]) and $self->allow_extra_m2m_cols || @link_table_cols == @link_table_primary_cols
683 16 0 0 $tables[0]->can("database") and &uniq(map(($_->database || ''), @tables)) > 1
725 7 0 7 not @adjectives and grep({$_->{'args'}[1] eq $to_class if $_->{'method'} eq "might_have";} @{$$all_code{$in_class};}) == 1
933 15 0 3 $map->{$moniker} and "HASH" eq ref $map->{$moniker}
15 0 3 $map->{$moniker} and "HASH" eq ref $map->{$moniker} and $map->{$moniker}{$name}
12 0 3 $map->{$name} and not "HASH" eq ref $map->{$name}
950 0 0 2 $cb_mapped && $cb_name

or 2 conditions

line l !l condition
300 552 0 $self->_relationship_attrs('belongs_to', $fk_attrs, $params) || {}
403 597 14 $rel->{'remote_columns'} || [$remote_obj->primary_columns]
683 0 0 $_->database || ''
0 32 $_->schema || ''

or 3 conditions

line l !l&&r !l&&!r condition
153 2 1 2 ref $self->relationship_attrs eq "HASH" or ref $self->relationship_attrs eq "CODE"
165 0 0 856 not defined $relname or $relname eq ""
193 0 0 696 not defined $relname or $relname eq ""
564 0 32 0 $self->allow_extra_m2m_cols || @link_table_cols == @link_table_primary_cols
612 48 16 0 $self->_relationship_attrs('many_to_many', {}, {'rel_type', 'many_to_many', 'rel_name', $class[$this]{'class2_relname'}, 'local_source', $self->schema->source($class[$this]{'local_moniker'}), 'remote_source', $self->schema->source($class[$this]{'remote_moniker'}), 'local_table', $self->loader->class_to_table->{$class[$this]{'class'}}, 'local_cols', $class[$this]{'from_cols'}, 'remote_table', $self->loader->class_to_table->{$class[$that]{'class'}}, 'remote_cols', $class[$that]{'from_cols'}}) || ()
815 0 2 0 $inflect_mapped || $rel_name_mapped
851 14 54 478 &array_eq([$local_source->primary_columns], $local_cols) or &first(sub { &array_eq($_->[1], $local_cols); } , @$uniqs)