Branch Coverage

blib/lib/RapidApp/Module/StorCmp.pm
Criterion Covered Total %
branch 16 92 17.3


line true false branch
118 253 0 unless defined $self->defer_to_store_module
130 103 0 if $self->dedicated_add_form_enabled
137 0 103 if ($self->can('create_records'))
138 0 0 unless $self->flag_defined('can_create')
139 0 0 if $self->has_flag('can_create')
142 103 0 if ($self->can('read_records'))
143 103 0 unless $self->flag_defined('can_read')
144 103 0 if $self->has_flag('can_read')
147 0 103 if ($self->can('update_records'))
148 0 0 unless $self->flag_defined('can_update')
149 0 0 if $self->has_flag('can_update')
152 0 103 if ($self->can('destroy_records'))
153 0 0 unless $self->flag_defined('can_destroy')
154 0 0 if $self->has_flag('can_destroy')
159 97 6 if defined $self->DataStore_build_params
214 11 92 unless $self->TableSpec
215 0 92 if $self->TableSpec_applied
223 92 0 unless $self->TableSpec->has_no_onrequest_columns_mungers
233 66 0 unless defined $self->defer_to_store_module
234 0 0 if $self->defer_to_store_module->can('defer_DataStore')
271 0 33 if (defined $self->defer_to_store_module) { }
314 0 0 unless $mode eq 'add' or $mode eq 'edit'
321 0 0 unless my $Cnf = $self->columns->{$colname}
322 0 0 unless defined $Cnf->{'editor'} and $Cnf->{'editor'} ne ''
328 0 0 if $mode eq 'edit' and not jstrue($Cnf->{'no_column'})
331 0 0 if jstrue($Cnf->{'no_column'}) and not $allow
334 0 0 if defined $Cnf->{$allow_flag} and not $allow
338 0 0 unless defined $field->{'allowBlank'}
341 0 0 unless $Cnf->{'is_nullable'}
343 0 0 unless (jstrue($field->{'allowBlank'}))
344 0 0 unless defined $field->{'labelStyle'}
347 0 0 if defined $Cnf->{'header'}
348 0 0 unless defined $field->{'header'} and $field->{'header'} ne ''
356 0 0 if $field->{'store'}
361 0 0 if jstrue($field->{'hidden'})
365 0 0 if ($Cnf->{'documentation'})
412 0 0 if exists $$update{$self->record_pk}
414 0 0 unless my $count = $editSpec->{'count'}
418 0 0 if $max and $count > $max
449 0 0 unless @$rows == $readdata->{'results'}
455 0 0 unless $editSpec->{'count'} == $readdata->{'results'}
471 0 0 if ref $result eq 'HASH' and defined $result->{'success'}
474 0 0 if $result
487 0 0 unless defined $param
489 0 0 if ref $param
497 0 0 unless $self->dedicated_add_form_enabled