line |
true |
false |
branch |
26
|
0 |
0 |
if ($self->is_calculated or $self->is_constant or $self->is_many or $self->via) |
34
|
1238 |
1040 |
unless (defined $self->{'_is_numeric'}) |
36
|
0 |
1238 |
unless ($class) |
46
|
1 |
2 |
unless (defined $self->{'_is_text'}) |
48
|
0 |
1 |
unless ($class) |
60
|
76 |
40 |
if $value->isa($data_class_name) |
62
|
39 |
1 |
if ($data_class_name->isa('UR::Value')) |
65
|
8 |
0 |
if $value->isa($underlying_type) |
74
|
4 |
6591 |
if ($self->{'via'} and $self->{'to'} and $self->{'via'} eq '__self__') { } |
90
|
97 |
2615 |
if ($ns and not $ns->isa('UR::Namespace')) |
95
|
2414 |
298 |
if ($foreign_class) |
96
|
206 |
2208 |
if ($foreign_class->can('__meta__')) { } |
102
|
2072 |
136 |
if ($ns and $ns->can('get')) |
104
|
665 |
1407 |
if ($ns_value_class->can('__meta__')) |
109
|
1543 |
665 |
unless ($final_class) |
111
|
428 |
1115 |
if ($ur_value_class->can('__meta__')) |
115
|
1115 |
1093 |
unless ($final_class) |
117
|
150 |
965 |
if ($ur_value_class->can('__meta__')) |
124
|
1263 |
1449 |
unless ($final_class) |
125
|
10 |
1253 |
if ('Class::Autouse'->class_exists($foreign_class)) { } |
|
0 |
1253 |
elsif ($foreign_class =~ /::/) { } |
133
|
1 |
1252 |
unless ($@) |
137
|
1252 |
0 |
if (not $ns or $ns->get->allow_sloppy_primitives) { } |
158
|
235 |
2374 |
unless ($foreign_class) |
159
|
4 |
231 |
if ($self->via or $self->to) |
183
|
317 |
3 |
if ($self->column_name) |
193
|
0 |
3 |
if $seen{$class_meta}++ |
196
|
1 |
2 |
unless $p |
198
|
2 |
0 |
if ($p->column_name and $class_meta->table_name) |
216
|
13 |
33 |
if defined $is_id |
218
|
5 |
28 |
if ($self->id_by) |
223
|
5 |
0 |
if $id_by_meta and $id_by_meta->_involves_id_property |
227
|
13 |
15 |
if ($self->via) |
229
|
0 |
13 |
if $via_meta and $via_meta ne $self and $via_meta->_involves_id_property |
231
|
13 |
0 |
if ($self->to) |
233
|
11 |
2 |
if $to_meta and $to_meta->_involves_id_property |
235
|
2 |
0 |
if ($self->where) |
236
|
0 |
2 |
unless ($to_meta) |
244
|
2 |
0 |
if $where_meta and $where_meta->_involves_id_property |
258
|
0 |
882 |
unless $self->is_delegated and $self->via |
268
|
0 |
267 |
unless defined $_[0] |
269
|
106 |
161 |
if ($_[0]->is_delegated and $_[0]->via) { } |
270
|
106 |
0 |
if ($_[0]->to) { } |
281
|
70 |
91 |
if not defined $final or $final->id eq $self->id |
290
|
0 |
865 |
unless $self->is_delegated and $self->to |
293
|
1 |
864 |
unless $via_meta |
303
|
0 |
864 |
unless $remote_class |
305
|
6 |
858 |
unless $remote_class_meta |
313
|
875 |
7863 |
unless ($self->{'_get_property_name_pairs_for_join'}) |
315
|
17 |
856 |
unless (@linkage) |
322
|
36 |
820 |
if ($self->reverse_as) { } |
335
|
856 |
56 |
if (my $id_by = $self->id_by) { } |
|
39 |
17 |
elsif (my $reverse_as = $self->reverse_as) { } |
337
|
0 |
856 |
unless ($r_class_meta) |
344
|
268 |
588 |
if (not @their_id_by or @my_id_by == 1 and @their_id_by > 1) |
351
|
0 |
856 |
unless (@my_id_by == @their_id_by) |
398
|
4277 |
13832 |
if (ref $self) |
400
|
2960 |
1317 |
if (my $method = $self->{$accessor_key}) |
403
|
263 |
1054 |
if ($self->class_name->__meta__->{'attributes_have'} and exists $self->class_name->__meta__->{'attributes_have'}{$method}) |