Branch Coverage

blib/lib/Class/DBI/Relationship/HasMany.pm
Criterion Covered Total %
branch 13 44 29.5


line true false branch
11 0 2 unless $accessor
13 0 2 unless $f_class
18 0 2 if defined &{"${class}::$accessor";}
23 0 2 if (ref $f_class eq 'ARRAY')
28 0 2 if (ref $f_key eq 'HASH')
36 1 1 unless $col
39 0 2 if (ref $f_key eq 'ARRAY')
40 0 0 if @$f_key > 1
49 0 2 if $$args{'sort'}
64 0 2 if ($self->args->{'no_cascade_delete'})
69 2 0 unless $strategy =~ /::/
72 0 2 unless $strategy->can('cascade')
92 0 0 unless my $class = ref $self
94 0 0 unless ref $data eq 'HASH'
103 0 0 if (defined $$args{'constraint'} and ref $$args{'constraint'} eq 'HASH')
105 0 0 if defined $$data{$k} and $$data{$k} ne $v
119 2 0 unless my(@mapping) = @{$self->args->{'mapping'};}
121 0 0 unless wantarray
134 0 0 if ref $search_args[0] eq 'HASH'
138 0 0 if (ref $self) { }
139 0 0 if defined $$args{'constraint'} and ref $$args{'constraint'} eq 'HASH'
142 0 0 if defined $$args{'order_by'}