Branch Coverage

blib/lib/ExtJS/Generator/DBIC/Model.pm
Criterion Covered Total %
branch 4 76 5.2


line true false branch
202 0 0 $tablename =~ /^(?:\w+::)* (\w+)$/x ? :
209 0 0 $modelname =~ /^(?:\w+\.)* (\w+\.\w+)$/x ? :
216 0 0 unless defined $extjs_model_name
239 0 0 if (not %$column_info) { }
244 0 0 if (exists $translate{$data_type})
248 0 0 if ($extjs_data_type eq 'float')
251 0 0 if exists $column_info->{'size'} and not $column_info->{'size'} =~ /,/
260 0 0 if exists $column_info->{'default_value'} and defined $column_info->{'default_value'}
262 0 0 if (exists $column_info->{'is_nullable'})
263 0 0 if ($column_info->{'is_nullable'} and $field_params->{'type'} ne 'date')
276 0 0 if (exists $column_info->{'is_auto_increment'} and $column_info->{'is_auto_increment'})
286 0 0 if ($rsrc->isa('DBIx::Class::DynamicDefault') and exists $column_info->{'dynamic_default_on_create'} && $column_info->{'dynamic_default_on_create'} eq 'get_timestamp' || exists $column_info->{'dynamic_default_on_update'} && $column_info->{'dynamic_default_on_update'} eq 'get_timestamp')
299 0 0 if (exists $column_info->{'set_on_create'} and $column_info->{'set_on_create'} or exists $column_info->{'set_on_update'} and $column_info->{'set_on_update'})
309 0 0 if (exists $column_info->{'store_user_on_create'} and $column_info->{'store_user_on_create'} or exists $column_info->{'store_user_on_update'} and $column_info->{'store_user_on_update'})
319 0 0 if (exists $column_info->{'is_boolean'} and $column_info->{'is_boolean'})
332 0 0 unless (ref $relinfo->{'cond'} eq 'HASH')
337 0 0 if (keys %{$$relinfo{'cond'};} > 1)
343 0 0 if (keys %{$$relinfo{'cond'};} > 1)
365 0 0 unless (ref $remote_relinfo->{'cond'} eq 'HASH')
373 0 0 if ($remote_relinfo->{'source'} eq $rsrc->result_class and $rel_col eq $remote_our_col and $our_col eq $remote_rel_col)
380 0 0 unless defined $remote_relname
425 0 0 if ($attrs->{'is_foreign_key_constraint'} and $attrs->{'accessor'} eq 'single' || $attrs->{'accessor'} eq 'filter')
430 0 0 if (exists $field_by_colname{$our_col}{'reference'})
439 0 0 defined $remote_relname ? :
449 0 0 if exists $column_info->{'is_nullable'} and not $column_info->{'is_nullable'}
453 0 0 if $attrs->{'accessor'} eq 'single' and $attrs->{'is_depends_on'} == 0
484 0 0 if (@pk == 1) { }
495 0 0 if exists $model->{'idProperty'}
503 0 0 if ($self->model_args)
532 1 1 unless $dir->open
539 0 0 if $namespaces[0] ne $self->appname
550 0 0 unless my $fh = $file->open(193)
574 0 0 unless $dir->open
578 0 0 if $namespaces[0] ne $self->appname
589 0 0 unless my $fh = $file->open(193)
605 0 0 unless $fh->close
614 0 1 unless my $dh = 'Path::Class::Dir'->new($dirname)->open
616 0 1 unless $dh->close