Condition Coverage

blib/lib/Jifty/DBI/Record.pm
Criterion Covered Total %
condition 95 142 66.9


and 3 conditions

line !l l&&!r l&&r condition
90 0 5 42 $class->isa('Jifty::DBI::Record') and defined $flag
5 0 42 $class->isa('Jifty::DBI::Record') and defined $flag and $flag eq '-base'
152 1 1 2 $col and $col->can($attribute)
172 0 0 133 ref $pkeys eq 'ARRAY' and $$pkeys[0]
262 194 0 1 grep {$_ eq 'Jifty::DBI::Filter::Storable';} $column->input_filters, $column->output_filters and not grep({$_ eq 'Jifty::DBI::Filter::base64';} $column->input_filters, $column->output_filters)
194 1 0 grep {$_ eq 'Jifty::DBI::Filter::Storable';} $column->input_filters, $column->output_filters and not grep({$_ eq 'Jifty::DBI::Filter::base64';} $column->input_filters, $column->output_filters) and not $column->type =~ /^(blob|bytea)$/i
454 20 2 3 not defined $value and $self->null_reference
487 0 0 3 $column->by and $self->id
509 0 10 0 $column and not $column->refers_to
0 10 0 $column and not UNIVERSAL::isa($_[0], $column->refers_to)
559 0 9 679 $col and exists $$col{$name}
800 0 1 3 not $$self{'fetched'}{$column_name} and my $id = $self->id
852 4 211 159 $$self{'fetched'}{$column_name} and $$self{'decoded'}{$column_name}
979 26 20 13 defined $args{'value'} and defined $$self{'values'}{$column->name}
46 12 1 defined $args{'value'} and defined $$self{'values'}{$column->name} and $args{'value'} . '' eq '' . $$self{'values'}{$column->name}
1074 1 0 67 @_ and defined $_[0]
1114 2 2 120 defined $hash{$key} and $hash{$key} ne ''
1134 119 0 1 blessed $value and $value->isa('Jifty::DBI::Record')
1146 0 8 112 $self->_handle->case_sensitive and $value
1147 89 2 21 $column_obj->is_string and not $case_sensitive
1154 0 120 0 $column_obj and $column_obj->no_placeholder
120 0 0 $column_obj and $column_obj->no_placeholder and $function eq '?'
1277 119 6 0 not $$self{'values'} and $sth->err
1408 0 158 14 $column->readable and $column->refers_to
158 0 14 $column->readable and $column->refers_to and UNIVERSAL::isa($column->refers_to, 'Jifty::DBI::Record')
158 10 4 $column->readable and $column->refers_to and UNIVERSAL::isa($column->refers_to, 'Jifty::DBI::Record') and UNIVERSAL::isa($attribs{$column_name}, 'Jifty::DBI::Record')
1444 172 152 75 not defined $attribs{$column->name} and defined $column->default
324 0 75 not defined $attribs{$column->name} and defined $column->default and not ref $column->default
1460 247 46 106 not defined $attribs{$column->name} and $column->mandatory
293 105 1 not defined $attribs{$column->name} and $column->mandatory and $column->type ne 'serial'
1827 0 0 0 $args{'short_circuit'} and not $results[0]

or 2 conditions

line l !l condition
150 3 1 shift() || ''
452 25 0 $column->by || 'id'
557 688 0 shift() || ''
593 255 2 $b->type || ''
255 2 $a->type || ''
121 38 $a->sort_order || 0
77 82 $b->sort_order || 0
603 738 0 $self->COLUMNS || {}
1109 1 1 delete $hash{'_handle'} || undef
1126 0 3 $hash{$key}{'function'} || '?'
1371 1 0 delete $attribs{'_handle'} || undef

or 3 conditions

line l !l&&r !l&&!r condition
59 5 362 0 ref $proto || $proto
255 0 195 0 ref $self || $self
541 0 47 0 ref $self || $self
593 98 142 17 (($b->type || '') eq 'serial') <=> (($a->type || '') eq 'serial') or ($a->sort_order || 0) <=> ($b->sort_order || 0)
646 0 0 0 ref $self || $self
976 60 0 0 $$self{'fetched'}{$column->name} or not $$self{'decoded'}{$column->name}
979 33 26 1 defined $args{'value'} || defined $$self{'values'}{$column->name}
1 0 59 not defined $args{'value'} || defined $$self{'values'}{$column->name} or defined $args{'value'} and defined $$self{'values'}{$column->name} and $args{'value'} . '' eq '' . $$self{'values'}{$column->name}
1574 0 0 0 ref $self || $self