Condition Coverage

blib/lib/Data/HandyGen/mysql.pm
Criterion Covered Total %
condition 32 107 29.9


and 3 conditions

line !l l&&!r l&&r condition
372 0 0 0 $table_def->is_pk($col) and defined $real_id
394 0 0 0 not defined $value and defined(my $valspec_col = $self->_valspec->{$table}{$col})
399 0 0 0 not defined $value and defined $col_def->column_default
526 0 0 0 ref $spec eq 'ARRAY' and @$spec == 2
532 0 0 0 ref $spec eq 'ARRAY' and @$spec == 2
587 0 0 0 defined $table and defined $col
0 0 0 defined $table and defined $col and defined $value
608 0 0 0 $table and $col
0 0 0 $table and $col and $ref_table
0 0 0 $table and $col and $ref_table and $ref_col
697 0 0 0 $self->_valspec->{$table} and defined $self->_valspec->{$table}{$col}
0 0 0 $self->_valspec->{$table} and defined $self->_valspec->{$table}{$col} and defined($real_id = $self->determine_value($self->_valspec->{$table}{$col}))
776 0 0 0 defined $col_def->column_default and not $table_def->is_fk($col)
1011 1 0 16 defined $table and length $table > 0
1014 1 1 14 defined $table_valspec and ref $table_valspec eq 'HASH'
1027 0 1 4 defined $_table and length $_table > 0
1 1 3 defined $_table and length $_table > 0 and defined $_col
2 0 3 defined $_table and length $_table > 0 and defined $_col and length $_col > 0
1 1 2 defined $_table and length $_table > 0 and defined $_col and length $_col > 0 and @_dummy == 0
1038 6 0 0 ref $val eq 'SCALAR' and $$val eq 'any'

or 2 conditions

line l !l condition
245 0 0 $self->{'_distinct_val'} ||= {}
358 0 0 $exp_id || '(undef)'
0 0 $real_id || '(undef)'
465 49 3 $self->{'_valspec'} ||= {}
477 1 4 $self->{'inserted'}{$table} ||= []
568 8 2 $ymdhms[1] || 1
8 2 $ymdhms[2] || 1
6 4 $ymdhms[3] || 0
4 6 $ymdhms[4] || 0
4 6 $ymdhms[5] || 0
858 0 0 $type || ''
867 0 0 $type || ''
875 0 0 $type || ''

or 3 conditions

line l !l&&r !l&&!r condition
232 0 0 0 $self->{'_sql_maker'} ||= 'SQL::Maker'->new('driver', 'mysql')
443 0 0 0 $real_id || $dbh->{'mysql_insertid'}
613 0 0 0 $self->_valspec->{$table}{$col} || $self->_valspec->{$ref_table}{$ref_col}
800 0 0 0 $self->{'_table_def'}{$table} ||= 'Data::HandyGen::mysql::TableDef'->new('dbh', $self->dbh, 'table_name', $table)
1038 5 0 6 ref $val eq 'ARRAY' or ref $val eq 'Regexp'
1103 0 0 0 $fk_check eq 'ON' or $fk_check == 1
1117 0 0 0 $fk_check eq 'ON' or $fk_check == 1