| line |
true |
false |
branch |
|
16
|
28817 |
6956 |
unless ref $_[0] |
|
44
|
1 |
2 |
if ($p->is_many) { } |
|
45
|
1 |
0 |
if (my(@value) = $self->$name) |
|
50
|
2 |
0 |
if (defined(my $value = $self->$name)) |
|
88
|
24 |
0 |
if @_ == 1 |
|
91
|
0 |
0 |
if ($bx->evaluate($self)) { } |
|
116
|
2096 |
30 |
if (index($property_name, '.') == -1) { } |
|
124
|
60 |
0 |
$pos == -1 ? : |
|
125
|
63 |
0 |
defined $_ ? : |
|
128
|
0 |
2126 |
unless defined wantarray |
|
129
|
2126 |
0 |
if wantarray |
|
130
|
0 |
0 |
if (@property_values > 1) |
|
144
|
0 |
0 |
if $label =~ /_id$/i |
|
157
|
0 |
0 |
if (not $in_context_of_related_object) { } |
|
|
0 |
0 |
elsif ($in_context_of_related_object eq ref $self) { } |
|
184
|
2995 |
0 |
unless (scalar @property_names) |
|
199
|
904 |
17946 |
if $is_delegated or $is_calculated |
|
203
|
2 |
17944 |
if @values > 1 |
|
208
|
0 |
0 |
if ($ENV{'UR_USE_DUMMY_AUTOGENERATED_IDS'} and $property_metadata->is_id and defined $value and index($value, '-') == 0 and defined $data_length) |
|
212
|
95 |
17849 |
unless ($is_optional or defined $value) |
|
222
|
4301 |
13643 |
unless defined $value |
|
226
|
1789 |
11854 |
unless defined $generic_data_type |
|
228
|
1918 |
11725 |
if ($generic_data_type eq 'Float' or $generic_data_type eq 'Integer') { } |
|
|
0 |
11725 |
elsif ($generic_data_type eq 'DateTime') { } |
|
229
|
1914 |
4 |
if (&looks_like_number($value)) { } |
|
260
|
13643 |
0 |
if ($generic_data_type ne 'DateTime') |
|
261
|
0 |
13643 |
if (defined $data_length and $data_length < length $value) |
|
276
|
1073 |
12570 |
if (my $constraints = $property_metadata->valid_values) |
|
280
|
1067 |
146 |
if ($value eq $valid_value) |
|
285
|
6 |
1067 |
unless ($valid) |
|
287
|
24 |
0 |
defined $_ ? : |
|
329
|
0 |
1582 |
if (ref $_[0]) { } |
|
351
|
60 |
48 |
if (ref $self) |
|
358
|
0 |
108 |
unless ($observer) |
|
374
|
0 |
1 |
if (%params) |
|
381
|
1 |
0 |
if ref $self |
|
382
|
0 |
1 |
if defined $aspect |
|
383
|
0 |
1 |
if defined $callback |
|
394
|
42 |
23 |
if (@_ > 1) |
|
396
|
0 |
42 |
if (exists $params{'where'}) |
|
404
|
15 |
50 |
if (&Scalar::Util::blessed($_[0]) and $_[0]->isa('UR::BoolExpr')) { } |
|
411
|
0 |
65 |
unless ($iterator) |
|
430
|
0 |
51 |
unless ($view) |
|
435
|
7 |
44 |
if (ref $self) |
|
453
|
0 |
0 |
if ($property->is_delegated || $property->is_optional and not exists $params{$property_name}) |
|
456
|
0 |
0 |
if ($property->is_mutable or $property->is_calculated or $property->is_delegated) { } |
|
459
|
0 |
0 |
if (@_) |
|
460
|
0 |
0 |
if ($property->is_many) { } |
|
469
|
0 |
0 |
if ($property->is_optional) { } |
|
470
|
0 |
0 |
if (exists $params{$property_name}) |
|
474
|
0 |
0 |
unless (exists $params{$property_name}) |
|
475
|
0 |
0 |
if (defined $property->default_value) { } |
|
478
|
0 |
0 |
unless ($property->is_calculated) |
|
486
|
0 |
0 |
unless (exists $params{$property_name}) |
|
487
|
0 |
0 |
if (defined $property->default_value) { } |
|
493
|
0 |
0 |
if ($property->is_many) { } |
|
517
|
241141 |
927 |
unless $self->{'_change_count'} |
|
520
|
0 |
927 |
if (ref $meta eq 'UR::DeletedRef') |
|
524
|
209 |
0 |
unless ($meta->is_transactional or $meta->is_meta_meta) |
|
545
|
617 |
101 |
unless (wantarray) |
|
547
|
24 |
593 |
if (@_) { } |
|
549
|
21 |
5 |
if &$prop_is_changed($_) |
|
555
|
48 |
545 |
$self->{'__defined'} && $self->{'_change_count'} == 1 ? : |
|
561
|
101 |
0 |
if ($orig) { } |
|
565
|
0 |
101 |
@_ ? : |
|
588
|
0 |
50 |
unless $change->type eq 'changed' |
|
612
|
504 |
95379 |
if ($UR::initialized and $_[0] ne 'UR::Object::Property') { } |
|
619
|
0 |
504 |
unless $self |
|
629
|
0 |
95379 |
if (my $method_name = $class_meta->sub_classification_method_name) |
|
632
|
0 |
0 |
if ($sub_class_name ne $class) |
|
639
|
0 |
95379 |
unless $self |
|
690
|
0 |
2197 |
if $self->is_strengthened |
|
691
|
0 |
2197 |
if $self->is_weakened |
|
692
|
9 |
2188 |
if $self->__meta__->is_meta |
|
693
|
0 |
2032 |
if $self->{'__get_serial'} and $self->__changes__ and @{[$self->__changes__];} |
|
702
|
27 |
940 |
unless ($saved) |
|
741
|
0 |
329 |
unless ($saved) |
|
757
|
295 |
116 |
if (&isweak($UR::Context::all_objects_loaded->{$class}{$id}) and &refaddr($UR::Context::all_objects_loaded->{$class}{$id}) == &refaddr($obj)) { } |
|
|
0 |
116 |
elsif (UR::Context::objects_may_go_out_of_scope()) { } |
|
762
|
0 |
295 |
if (() = $obj->__changes__) { } |
|
763
|
0 |
0 |
if $ENV{'UR_DEBUG_OBJECT_RELEASE'} |
|
767
|
0 |
295 |
if $ENV{'UR_DEBUG_OBJECT_RELEASE'} |
|
774
|
0 |
0 |
if ($obj->__meta__->is_meta_meta or @{[$obj->__changes__];}) { } |
|
775
|
0 |
0 |
unless &refaddr($obj) == &refaddr($obj_from_cache) |
|
777
|
0 |
0 |
if $ENV{'UR_DEBUG_OBJECT_RELEASE'} |
|
781
|
0 |
0 |
if ($ENV{'UR_DEBUG_OBJECT_RELEASE'}) |
|
789
|
0 |
116 |
if ($ENV{'UR_DEBUG_OBJECT_RELEASE'}) |