Branch Coverage

blib/lib/Aniki/Schema/Relationship.pm
Criterion Covered Total %
branch 19 34 55.8


line true false branch
64 0 125 @dest_columns == 1 && $dest_columns[0] =~ /^(.+)_\Q$src_table_name\E/u ? :
0 125 @src_columns == 1 && $src_columns[0] =~ /^(.+)_\Q$dest_table_name\E/u ? :
68 63 62 $self->has_many ? :
75 2 65 if $words =~ /$sep/u
81 25 118 if exists $self->{'__inverse_relationships'}
93 62 118 if $dest->dest_table_name ne $self->src_table_name
94 0 118 unless _cmp_deeply($dest->dest_columns, $self->src_columns)
95 0 118 unless _cmp_deeply($dest->src_columns, $self->dest_columns)
104 236 236 unless ref $l and ref $r
105 0 236 if ref $l ne ref $r
107 0 236 if (ref $l eq 'HASH') { }
236 0 elsif (ref $l eq 'ARRAY') { }
109 0 0 unless exists $r->{$k}
110 0 0 unless _cmp_deeply($l->{$k}, $r->{$k})
113 0 0 unless exists $l->{$k}
118 0 236 if @$l != @$r
120 0 236 unless _cmp_deeply($l->[$i], $r->[$i])