Condition Coverage

lib/UR/Object/Type/InternalAPI.pm
Criterion Covered Total %
condition 86 137 62.7


and 3 conditions

line !l l&&!r l&&r condition
80 0 111 0 @pmeta and $pmeta[-1]
90 38478 233196 0 exists $self->{'_property_meta_for_name'} and $self->{'_property_meta_for_name'}{$property_name}
115 2724 2 73 $property_metas[$i]->id eq "UR::Object\tid" and not $property_name =~ /\./
120 7 27 39 @id_properties == 1 and $id_properties[0] eq 'id'
201 2286 12051 0 $self->{'_resolve_property_aliases'} and $self->{'_resolve_property_aliases'}{$property_name}
215 1 0 2 $prop_meta->data_type && eval { do { $prop_meta->data_type->__meta__ } }
239 0 3114 2169 $self->{'id_by'} and @id_by = @{$self->{'id_by'};}
689 3951 221 20 $class_name->isa($type) and not $uncachable_types{$type}
752 17 11 211 $id_generator and $id_generator =~ /^\-(\S+)/
910 7 60 2 $self->data_source_id and $self->data_source_id->isa('UR::DataSource::Default')
924 0 0 0 $class_obj and $class_obj->has_direct_table
935 0 0 0 $class_obj and $class_obj->has_direct_table
993 223 0 3549 $class_name ne 'UR::Object::Type::Ghost' and 'UR::Object::Type::Ghost'->can('class')
223 3549 0 $class_name ne 'UR::Object::Type::Ghost' and 'UR::Object::Type::Ghost'->can('class') and $UR::Context::current->get_objects_for_class_and_rule('UR::Object::Type::Ghost', $rule, 0)
1056 2065 164 0 $exception and $exception =~ /^Error while autoloading/
1142 0 7282 2 defined $expected_directory and not $expected_directory =~ m(^[/\\])
1155 0 5411 6867 $dir and -e $dir . '/' . $class_path
1167 0 6867 0 $expected_directory and $expected_directory ne $found
1298 0 31 2159 $table_name and $self_table_name
31 11 2148 $table_name and $self_table_name and lc $self_table_name eq lc $table_name
1315 1 1 2144 $prop_meta->class_name eq $self->class_name and lc $prop_meta->column_name eq $column_name
1469 1 0 0 $method eq 'is_id' and $new_val ne $old_val
1494 0 3 0 exists $class_obj->{'has'}{$property_name} and exists $class_obj->{'has'}{$property_name}{$method}
1608 0 367 372 defined $aspect and length $aspect
1668 1 1 0 $property_meta and $property_meta->is_many
1687 0 2735 0 $singular && "${singular}_iterator"
1694 0 2735 0 $singular && "${singular}_set"
1701 0 2735 0 $singular && "__${singular}_rule"
1708 0 2735 0 $singular && "${singular}_arrayref"
1715 0 2735 0 $singular && "add_$singular"
1722 0 2735 0 $singular && "remove_$singular"

or 2 conditions

line l !l condition
202 4257 2286 $self->{'_resolve_property_aliases'} ||= {}
465 5 0 $underlying_property_count ||= 0
649 0 835 $self->{'_sorter'}{$key} ||= sub ($$) { for (my $n = 0; $n < @properties; ++$n) { my $property = $properties[$n]; my @property_string = split(/\./, $property, 0); my($first, $second) = $is_descending[$n] ? ($_[1], $_[0]) : ($_[0], $_[1]); foreach my $current (@property_string) { $first = $first->$current; $second = $second->$current; if (not defined $second) { return -1; } elsif (not defined $first) { return 1; } ; } ; my $cmp = $is_numeric[$n] ? $first <=> $second : $first cmp $second; return $cmp if $cmp; } ; return 0; }
1293 5230 0 $self->data_source || 'UR::DataSource'

or 3 conditions

line l !l&&r !l&&!r condition
93 70374 266 0 $PROPERTY_META_FOR_NAME_TEMPLATE ||= 'UR::BoolExpr::Template'->resolve('UR::Object::Property', 'class_name', 'property_name')
173 32434 266 0 $DIRECT_ID_PROPERTY_METAS_TEMPLATE ||= 'UR::BoolExpr::Template'->resolve('UR::Object::Property', 'class_name', 'property_name', 'is_id >=')
374 798 12061 11898 $meta_classes{$class_name} or $class_name =~ /::Type/
589 7327 467 0 $self->{'_id_property_sorter'} ||= $self->sorter
848 17030 0 0 $subject_class_metaobj->property_meta_for_name($_) || Carp::croak("Can't no metadata for property '${_}' of class " . $self->meta_class_name)
850 8908 786 7336 $p->is_delegated || $p->is_calculated
1330 33 11 36 not $class_object_table_name or $table_name ne lc $class_object_table_name
1336 39 1 40 not $class_object_table_name or $table_name ne lc $class_object_table_name
1460 46971 0 3 $method eq 'load' or $method eq 'unload'
1537 0 0 0 $method eq 'load' or $method eq 'unload'
1668 798 1936 2 $bootstrapping or not $self->generated
2734 0 2 $bootstrapping or not $self->generated or $property_meta and $property_meta->is_many