line |
true |
false |
branch |
52
|
0 |
0 |
if (exists $params{$param_name} and not ref $params{$param_name}) |
63
|
0 |
0 |
unless $obj |
65
|
0 |
0 |
if $override |
102
|
0 |
0 |
if ($specified_class_name_arrayref or $specified_table_name_arrayref) { } |
104
|
0 |
0 |
if ($specified_class_name_arrayref) { } |
144
|
0 |
0 |
if ($specified_data_source_arrayref) { } |
148
|
0 |
0 |
if ($data_source_is_specified{$ds->id}) |
154
|
0 |
0 |
if (my(@unknown) = keys %data_source_is_specified) |
173
|
0 |
0 |
unless $1 |
195
|
0 |
0 |
unless ($success) |
209
|
0 |
0 |
$force_rewrite_all_classes ? : |
|
0 |
0 |
unless $force_rewrite_all_classes ? 1 : $_->__changes__ |
224
|
0 |
0 |
if ($obj->can('get_table')) { } |
|
0 |
0 |
elsif ($obj->isa('UR::DataSource::RDBMS::Table') or $obj->isa('UR::DataSource::RDBMS::Table::Ghost')) { } |
226
|
0 |
0 |
unless ($table) |
234
|
0 |
0 |
unless $table |
256
|
0 |
0 |
if (@data_dictionary_objects) { } |
257
|
0 |
0 |
unless $force_rewrite_all_classes |
263
|
0 |
0 |
unless ($success) |
281
|
0 |
0 |
if ($namespace->can('_update_classes_from_data_sources') and not $specified_table_name_arrayref and not $specified_class_name_arrayref and not $specified_data_source_arrayref) |
293
|
0 |
0 |
unless ($sync_success) |
327
|
0 |
0 |
unless $class_name |
330
|
0 |
0 |
unless (@changed_class_meta_objects) |
335
|
0 |
0 |
$changed_class_count == 1 ? : |
345
|
0 |
0 |
if ($@) { } |
|
0 |
0 |
elsif (not $module_update_success) { } |
363
|
0 |
0 |
unless ('UR::Context'->_commit_databases) |
382
|
0 |
0 |
unless $class_obj |
384
|
0 |
0 |
if $class_obj->generated |
385
|
0 |
0 |
unless (eval {
do {
$class_obj->generate
}
}) |
391
|
0 |
0 |
unless ($success) |
416
|
0 |
0 |
if keys %params |
423
|
0 |
0 |
if ($data_source->can('get_table_last_ddl_times_by_table_name') and not $force_check_all_tables) |
436
|
0 |
0 |
$table_name ? : |
464
|
0 |
0 |
if ($current_table_names{$table_name} and not $table_object) { } |
|
0 |
0 |
elsif ($current_table_names{$table_name} and $table_object) { } |
|
0 |
0 |
elsif ($table_object and not $current_table_names{$table_name}) { } |
467
|
0 |
0 |
$last_actual_ddl_time ? : |
474
|
0 |
0 |
unless $table_object |
481
|
0 |
0 |
if (not exists $last_ddl_time_for_table_name->{$table_name} && defined $table_object->last_ddl_time or $last_ddl_time_for_table_name->{$table_name} gt $table_object->last_ddl_time) |
488
|
0 |
0 |
unless ($table_object) |
495
|
0 |
0 |
if (@changes) |
550
|
0 |
0 |
if $obj |
553
|
0 |
0 |
unless ($self->{'_class_meta_cache'}{$data_source_name}) |
560
|
0 |
0 |
unless $table_name |
566
|
0 |
0 |
if $obj |
575
|
0 |
0 |
if (%params) |
602
|
0 |
0 |
unless $_[0]->table_name cmp $_[1]->table_name |
620
|
0 |
0 |
unless ($fk->table_name) |
629
|
0 |
0 |
unless ($class) |
636
|
0 |
0 |
unless ($property) |
657
|
0 |
0 |
unless ($table) |
665
|
0 |
0 |
unless ($class) |
674
|
0 |
0 |
unless ($property) |
679
|
0 |
0 |
unless ($table->isa('UR::DataSource::RDBMS::Table::Ghost')) |
692
|
0 |
0 |
unless ($property->isa('UR::DeletedRef')) |
702
|
0 |
0 |
unless ($table_name) |
707
|
0 |
0 |
unless (defined 'UR::Context'->_get_committed_property_value($table, 'table_name')) |
718
|
0 |
0 |
unless ($class) |
736
|
0 |
0 |
if $a |
738
|
0 |
0 |
if (@ancestors_with_tables) { } |
770
|
0 |
0 |
if ($class) { } |
773
|
0 |
0 |
if ($class->data_source ne $table->data_source) |
779
|
0 |
0 |
if ($table->remarks ne 'UR::Context'->_get_committed_property_value($table, 'remarks')) |
782
|
0 |
0 |
if ($table->data_source ne 'UR::Context'->_get_committed_property_value($table, 'data_source')) |
786
|
0 |
0 |
if ($class->__changes__) |
799
|
0 |
0 |
ref $data_source ? : |
801
|
0 |
0 |
unless ($class_name) |
812
|
0 |
0 |
$class ? : |
813
|
0 |
0 |
$class ? : |
814
|
0 |
0 |
if ($class and $prev_table_name) |
830
|
0 |
0 |
if ($class) { } |
831
|
0 |
0 |
$table->remarks ? : |
836
|
0 |
0 |
$table->remarks ? : |
844
|
0 |
0 |
unless ($class) |
866
|
0 |
0 |
defined $column->data_length ? : |
871
|
0 |
0 |
unless ($class) |
874
|
0 |
0 |
unless $class |
879
|
0 |
0 |
if (defined $prop_object->column_name and lc $prop_object->column_name eq lc $column_name) |
886
|
0 |
0 |
if ($property) { } |
893
|
0 |
0 |
$c->is_time_data ? : |
|
0 |
0 |
defined $av ? : |
895
|
0 |
0 |
defined $ur_data_type ? : |
897
|
0 |
0 |
defined $av && $av eq 'Y' ? : |
900
|
0 |
0 |
defined $av ? : |
908
|
0 |
0 |
if ('UR::Context'->_get_committed_property_value($column, $column_attr) ne $column->$column_attr) |
909
|
0 |
0 |
if ($conversion_sub) { } |
918
|
0 |
0 |
if ($property->__changes__) |
934
|
0 |
0 |
unless ($property_name) |
943
|
0 |
0 |
if $attempt |
948
|
0 |
0 |
$column->nullable eq 'Y' ? : |
962
|
0 |
0 |
if $property |
976
|
0 |
0 |
unless ($property) |
977
|
0 |
0 |
if ($create_exception =~ /An object of class UR::Object::Property already exists/) { } |
1002
|
0 |
0 |
unless (@properties) |
1014
|
0 |
0 |
if (join($", @expected_pk_cols) eq join($", @pk_cols)) |
1018
|
0 |
0 |
unless (@pk_cols) |
1028
|
0 |
0 |
if defined $_->column_name |
1030
|
0 |
0 |
unless ($property) |
1040
|
0 |
0 |
if ($pk_cols{$name}) |
1060
|
0 |
0 |
if ($property_meta and $property_meta->column_name and scalar $class_meta->direct_id_property_metas > 1) |
1063
|
0 |
0 |
unless (defined $property_meta->is_id) |
1087
|
0 |
0 |
if ($@ =~ /There is no constraint named/) { } |
|
0 |
0 |
elsif ($@) { } |
1093
|
0 |
0 |
ref $_ ? : |
1097
|
0 |
0 |
if defined $_->column_name |
1098
|
0 |
0 |
unless ($property) |
1128
|
0 |
0 |
unless ($class) |
1137
|
0 |
0 |
unless ($r_class) |
1160
|
0 |
0 |
unless ($property) |
1172
|
0 |
0 |
unless ($r_property) |
1181
|
0 |
0 |
if ($property_name =~ /^(.*)$r_property_name(.*)$/ or $property_name =~ /^(.*)_id$/) |
1185
|
0 |
0 |
if defined $prefix |
1187
|
0 |
0 |
if defined $suffix |
1196
|
0 |
0 |
if ($matched) { } |
1197
|
0 |
0 |
if $prefix |
1198
|
0 |
0 |
!($suffix =~ /\D/) ? : |
|
0 |
0 |
if $suffix |
1209
|
0 |
0 |
$2 ? : |
1227
|
0 |
0 |
if ('UR::Object::Property'->get('class_name', $class_name, 'property_name', $delegation_name)) |
1229
|
0 |
0 |
if ('UR::Object::Property'->get('class_name', $class_name, 'property_name', $delegation_name . '_obj')) { } |
1232
|
0 |
0 |
unless ('UR::Object::Property'->get('class_name', $class_name, 'property_name', $delegation_name . "_$i")) |
1246
|
0 |
0 |
unless ($class->property_meta_for_name($delegation_name)) |
1289
|
0 |
0 |
if (%params) |
1297
|
0 |
0 |
if $self->{'_override_no_commit_for_filesystem_items'} |
1303
|
0 |
0 |
if ($class_obj = 'UR::Object::Type'->get('class_name', $class_name)) { } |
|
0 |
0 |
elsif ($class_obj = 'UR::Object::Type::Ghost'->get('class_name', $class_name)) { } |
1304
|
0 |
0 |
if ($class_obj->{'is'}[0] =~ /::Type$/ and $class_obj->{'is'}[0]->isa('UR::Object::Type')) |
1307
|
0 |
0 |
if ($class_obj->{'db_committed'}) { } |
1313
|
0 |
0 |
unless $no_commit |
1319
|
0 |
0 |
if ($class_obj->{'is'}[0] eq 'UR::Object::Type') |
1325
|
0 |
0 |
unless ($no_commit) |
1326
|
0 |
0 |
unless (-d $obsolete_module_directory) |
1328
|
0 |
0 |
unless (-d $obsolete_module_directory) |
1351
|
0 |
0 |
if ($no_commit) |