Branch Coverage

blib/lib/Geoffrey/Action/Constraint/ForeignKey.pm
Criterion Covered Total %
branch 23 28 82.1


line true false branch
15 1 24 unless (&Ref::Util::is_hashref($hr_params))
19 1 23 unless ($self->converter->foreign_key)
23 1 22 unless (exists $hr_params->{'table'})
27 0 19 unless (exists $hr_params->{'column'} and exists $hr_params->{'reftable'} and exists $hr_params->{'refcolumn'})
33 1 2 unless exists $hr_params->{'reftable'}
35 1 1 unless exists $hr_params->{'refcolumn'}
37 1 0 unless exists $hr_params->{'column'}
49 0 19 exists $hr_params->{'schema'} ? :
51 17 2 if $self->for_table
58 0 6 unless (exists $hr_params->{'name'})
62 1 5 unless ($self->converter->foreign_key)
71 1 9 unless ($self->converter->foreign_key)
79 0 2 if $self->for_table
86 1 3 unless ($self->converter->foreign_key)