Condition Coverage

lib/UR/Object/Type/ModuleWriter.pm
Criterion Covered Total %
condition 33 76 43.4


and 3 conditions

line !l l&&!r l&&r condition
36 0 0 0 @i and @i == @parent_class_objects
52 0 8 0 @isa == 1 and $isa[0] =~ /^UR::Object|UR::Entity$/
57 0 8 0 $self->er_role and $self->er_role ne $class_meta_meta->property_meta_for_name('er_role')->default_value
119 0 82 24 $property_obj && $property_obj->default_value
124 80 26 0 defined $property_value and $property_value + 0 eq $property_value && $default_value + 0 eq $default_value && $property_value != $default_value || $property_value ne $default_value
151 0 18 3 $mentioned_section and $mentioned_section eq 'id_implied'
200 0 8 0 $unique_groups and keys %$unique_groups
218 7 1 0 $self->data_source_id and $id_generator eq '-urinternal'
1 0 7 not $self->data_source_id and $id_generator eq '-urinternal'
228 0 8 0 $self->roles and @{$self->roles;}
281 21 0 0 defined $property->data_length and length $property->data_length
285 0 0 10 $params{'has_table'} and not $property->is_transient
294 0 2 0 $calc_from and @$calc_from == 1
318 0 10 0 $ds && $ds->table_and_column_names_are_upper_case
351 0 1 2 $property->to and $property->to ne $property->property_name
457 18 0 3 $desc and length $desc
518 28 0 43 defined $path and length $path
567 0 0 0 $line and $line =~ /^use $namespace;/
570 0 0 0 $line and $line =~ /^define UR::Object::Type$/ || $line =~ /^(App|UR)::Object::(Type|Class)->(define|create)\($/ || $line =~ /^class\s*$class_name\b/

or 2 conditions

line l !l condition
439 8 13 $1 || ''
710 0 0 $ENV{'HOST'} ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
116 24 296 106 $property_obj->is_calculated or $property_obj->is_delegated
124 0 2 24 $property_value + 0 eq $property_value && $default_value + 0 eq $default_value && $property_value != $default_value || $property_value ne $default_value
151 3 0 18 $mentioned_section and $mentioned_section eq 'id_implied' or $id_property_names{$property_meta->property_name}
570 0 0 0 $line =~ /^define UR::Object::Type$/ || $line =~ /^(App|UR)::Object::(Type|Class)->(define|create)\($/ || $line =~ /^class\s*$class_name\b/
670 0 0 0 defined $begin or defined $end