Branch Coverage

blib/lib/Geoffrey/Action/Table.pm
Criterion Covered Total %
branch 28 32 87.5


line true false branch
14 1 7 if ($self->{'template'} and not $self->{'template'}->template($s_template) or not $self->{'template'})
34 10 2 unless defined $_[1]
40 10 2 unless defined $_[1]
47 54 10 if $self->{'constraint_action'}
56 54 10 if $self->{'column_action'}
77 1 12 unless ($hr_params and $hr_params->{'name'})
85 8 4 if ($hr_params->{'template'})
93 0 39 if exists $hr_params->{'schema'}
99 0 0 if exists $hr_params->{'schema'}
103 1 10 if (scalar @columns == 0 and not $self->converter->can_create_empty_table)
117 0 10 $hr_params->{'schema'} ? :
124 1 12 unless (Ref::Util::is_hashref($hr_params))
128 1 11 unless ($hr_params->{'name'})
137 1 11 unless ($s_sub and $obj_action->can($s_sub))
150 2 1 Ref::Util::is_hashref($hr_params) ? :
151 2 1 unless ($s_name)