Branch Coverage

blib/lib/Geoffrey/Action/Column.pm
Criterion Covered Total %
branch 27 30 90.0


line true false branch
15 1 85 unless (&Ref::Util::is_hashref($hr_params))
19 77 8 if $self->for_table
21 1 7 unless ($tables and $tables->can('add_column'))
25 1 6 if (defined $hr_params->{'primarykey'})
47 1 4 unless (&Ref::Util::is_hashref($hr_params))
52 3 1 unless ($table and $table->can('drop_column'))
73 10 67 defined $hr_params->{'primarykey'} ? :
74 62 15 exists $hr_params->{'default'} || exists $hr_params->{'foreignkey'} ? :
75 0 77 if ($b_primarykey and not $b_has_value)
88 37 49 unless defined $params->{'default'}
92 37 12 unless ($default_by_key)
93 7 30 if $params->{'default'} eq q['']
97 8 4 if ($params->{'default'} eq 'autoincrement') { }
4 0 elsif (defined $$defaults{$params->{'default'}}) { }
98 0 8 if $$defaults{$params->{'default'}} eq 'sequence'