line |
true |
false |
branch |
76
|
0 |
2 |
if $self->is_TableSpec_applied
|
79
|
0 |
2 |
if $self->has_column($m2m)
|
80
|
0 |
2 |
if $self->has_relationship($m2m)
|
82
|
0 |
2 |
unless my $rinfo = $self->relationship_info($local_rel)
|
86
|
0 |
2 |
unless $rinfo->{'attrs'}{'accessor'} eq 'multi'
|
89
|
0 |
2 |
unless ($rrinfo)
|
141
|
2 |
0 |
unless exists $ENV{'DBIC_OVERWRITE_HELPER_METHODS_OK'}
|
222
|
0 |
54 |
ref $_[0] eq 'HASH' ? :
|
225
|
0 |
54 |
if $self->is_TableSpec_applied
|
232
|
0 |
0 |
unless $self->TableSpec_data_type_profiles
|
234
|
0 |
54 |
if $opt{'TableSpec_data_type_profiles'}
|
278
|
0 |
54 |
ref $_[0] eq 'HASH' ? :
|
294
|
161 |
152 |
$info->{'is_nullable'} ? :
|
295
|
45 |
268 |
if $info->{'is_auto_increment'}
|
301
|
0 |
313 |
if $info->{'data_type'} =~ /\[/
|
305
|
0 |
313 |
unless ref $type_profile
|
318
|
66 |
990 |
unless $self->TableSpec_built_cnf
|
324
|
0 |
66 |
unless $self->TableSpec_cnf
|
338
|
0 |
66 |
$is_virtual ? :
|
339
|
0 |
66 |
$is_virtual ? :
|
345
|
0 |
66 |
if $data->{'singleIconCls'} and not $data->{'iconCls'}
|
353
|
66 |
0 |
$data->{'display_column'} ? :
|
365
|
0 |
0 |
if ref $display
|
410
|
0 |
66 |
unless $set->{'column_properties_defaults'}
|
413
|
0 |
66 |
unless $set->{'column_properties_ordered'}
|
417
|
0 |
66 |
unless $set->{'column_properties'}
|
426
|
373 |
70 |
$self->has_column($col) ? :
|
436
|
55 |
0 |
if $is_local and $self->has_relationship($col) and $set->{'priority_rel_columns'}
|
443
|
0 |
0 |
if not $is_local and $set->{'no_priority_rel_column'} and $set->{'no_priority_rel_column'}{$col} and $is_phy
|
450
|
72 |
371 |
if $pri_cols{$col}
|
452
|
114 |
329 |
unless ($is_local)
|
454
|
114 |
0 |
if ($self->has_relationship($col))
|
461
|
49 |
65 |
if ($info->{'attrs'}{'accessor'} eq 'single' or $info->{'attrs'}{'accessor'} eq 'filter') { }
|
|
65 |
0 |
elsif ($info->{'attrs'}{'accessor'} eq 'multi') { }
|
464
|
0 |
49 |
unless ($cond_data->{'foreign'} and $cond_data->{'self'})
|
473
|
49 |
0 |
if ($self->has_column($cond_data->{'self'}))
|
475
|
24 |
25 |
$self->column_info($cond_data->{'self'})->{'is_nullable'} ? :
|
497
|
0 |
0 |
if not defined $display_column and ref $display_columns eq 'ARRAY' and @$display_columns > 0
|
504
|
0 |
49 |
unless $display_column
|
506
|
49 |
0 |
if not defined $display_columns and defined $display_column
|
511
|
0 |
49 |
unless $display_column
|
522
|
0 |
49 |
unless $cols->{$col}{'valueField'} = $cond_data->{'foreign'}
|
525
|
0 |
49 |
unless $cols->{$col}{'keyField'} = $cond_data->{'self'}
|
541
|
0 |
65 |
if $is_virtual
|
542
|
65 |
0 |
if $info->{'attrs'}{'accessor'} eq 'multi'
|
551
|
180 |
149 |
$info->{'is_nullable'} ? :
|
552
|
58 |
271 |
if $info->{'is_auto_increment'}
|
558
|
0 |
329 |
if $info->{'data_type'} =~ /\[/
|
562
|
0 |
329 |
unless ref $type_profile
|
568
|
0 |
329 |
if defined $cols->{$col}{'profiles'} and not ref $cols->{$col}{'profiles'}
|
569
|
79 |
250 |
if $cols->{$col}{'profiles'}
|
571
|
0 |
329 |
if $is_virtual
|
579
|
2 |
327 |
if exists $info->{'default_value'}
|
585
|
0 |
329 |
if ((ref $info->{'default_value'} || '') eq 'SCALAR')
|
600
|
0 |
0 |
unless ${$info->{'default_value'};} eq 'null'
|
612
|
10 |
319 |
$info->{'extra'} && $info->{'extra'}{'unsigned'} ? :
|
613
|
10 |
319 |
if $unsigned
|
615
|
216 |
113 |
if ($info->{'size'})
|
619
|
12 |
204 |
if (ref $size eq 'ARRAY')
|
623
|
12 |
0 |
unless $unsigned
|
624
|
12 |
0 |
if ($p and $p > 0) { }
|
636
|
228 |
101 |
if (keys %$editor > 0)
|
645
|
0 |
0 |
if ($info->{'data_type'} eq 'enum' and $info->{'extra'} and $info->{'extra'}{'list'})
|
653
|
0 |
0 |
if $info->{'is_nullable'}
|
701
|
83 |
20 |
if $accessor eq 'filter' and $self->TableSpec_cnf->{'priority_rel_columns'} and not $self->TableSpec_cnf->{'no_priority_rel_column'} && $self->TableSpec_cnf->{'no_priority_rel_column'}{$rel} and not $pri_cols{$rel}
|
704
|
99 |
244 |
if ($accessor eq 'single') { }
|
|
175 |
69 |
elsif ($accessor eq 'multi') { }
|
706
|
99 |
0 |
if ($cond_info->{'self'} and $cond_info->{'foreign'}) { }
|
709
|
16 |
83 |
if $fk
|
731
|
16 |
980 |
$fk_cols{$_} ? :
|
763
|
0 |
824 |
unless scalar @_ > 0
|
766
|
0 |
824 |
if (ref $_[0])
|
767
|
0 |
0 |
unless ref $_[0] eq 'HASH' and scalar @_ == 1
|
777
|
50 |
774 |
if ($col_prop_names{$_[0]})
|
783
|
0 |
774 |
if scalar @_ & 1
|
792
|
0 |
1186 |
if ref $param
|
797
|
57 |
1129 |
if ($col_prop_names{$param}) { }
|
802
|
0 |
57 |
unless ref $cnf{$param} eq 'HASH'
|
822
|
0 |
165 |
unless scalar @_ > 0
|
826
|
58 |
107 |
if (ref $_[0])
|
827
|
0 |
58 |
unless ref $_[0] eq 'HASH' and scalar @_ == 1
|
835
|
0 |
107 |
if scalar @_ & 1
|
858
|
0 |
681 |
unless $valid_colnames{$col}
|
873
|
0 |
0 |
unless ref $conf eq 'HASH'
|
882
|
0 |
0 |
unless $existing->{$_}
|
883
|
0 |
0 |
unless $conf->{$_}
|
898
|
44 |
1610 |
if $col_prop_names{$param}
|
920
|
0 |
1654 |
if (wantarray and ref $value)
|
921
|
0 |
0 |
if ref $value eq 'ARRAY' or ref $value eq 'HASH'
|
926
|
0 |
0 |
if ref $value eq 'ARRAY'
|
927
|
0 |
0 |
if ref $value eq 'HASH'
|
932
|
0 |
658 |
wantarray ? :
|
|
658 |
996 |
unless exists $storage->{$param}
|
943
|
84 |
0 |
if exists $storage->{$param}
|
957
|
0 |
554 |
unless $relclass->can('TableSpec_get_conf')
|
1004
|
0 |
0 |
unless ref $cond eq 'HASH' and scalar keys %$cond == 1
|
1011
|
0 |
0 |
if defined $col and $side eq 'foreign'
|
1033
|
0 |
507 |
unless ref $cond eq 'HASH' and scalar keys %$cond == 1
|
1067
|
0 |
0 |
if ($self->in_storage)
|
1074
|
0 |
0 |
wantarray ? :
|
1078
|
0 |
0 |
if ($self->in_storage)
|
1086
|
0 |
0 |
unless defined $new{$col} or defined $old{$col}
|
1087
|
0 |
0 |
if $new{$col} eq $old{$col}
|
1094
|
0 |
0 |
unless ($fk_map->{$col})
|
1105
|
0 |
0 |
unless ($display_col and $relOld || $relNew)
|
1112
|
0 |
0 |
if exists $old{$col} and $relOld
|
1113
|
0 |
0 |
if exists $new{$col} and $relNew
|
1125
|
0 |
0 |
$col_props->{$_} && $col_props->{$_}{'header'} ? :
|
1129
|
0 |
0 |
wantarray ? :
|
1141
|
0 |
183 |
if $rest_key_col and $rest_key_col ne ''
|
1143
|
183 |
0 |
if $pri[0] and scalar @pri == 1
|
1163
|
0 |
0 |
unless my $col = $class->getRestKey
|
1169
|
0 |
0 |
unless my $url = $class->getOpenUrl
|
1170
|
0 |
0 |
unless my $val = $self->getRestKeyVal
|
1177
|
0 |
0 |
if $self->has_column($display_column)
|
1186
|
0 |
0 |
unless my $title = $self->getDisplayValue
|
1187
|
0 |
0 |
unless my $url = $self->getRestPath
|
1218
|
0 |
447 |
!ref($arg) && $arg->can('table') ? :
|
1220
|
0 |
447 |
if (ref $table || '') eq 'SCALAR'
|