Condition Coverage

blib/lib/DBIx/Custom.pm
Criterion Covered Total %
condition 107 157 68.1


and 3 conditions

line !l l&&!r l&&r condition
103 0 0 513 not ref $connector and $connector
133 0 0 4070 ref $connector and $connector->can('dbh')
188 56 164 3 @_ % 2 != 0 and not ref $_[0]
209 0 223 0 $model->columns and @{$model->columns;}
553 506 0 18 @_ > 0 and not ref $_[0]
506 15 3 @_ > 0 and not ref $_[0] and $_[0] =~ /:/
598 0 1787 927 defined $quote and length $quote > 1
769 786 0 38 defined $opt{'id'} and not $multi
936 994 840 75 $type_rule->{$into} and my $filter = $type_rule->{$into}{$type_name}
940 0 66 9 defined $filter and ref $filter ne 'CODE'
966 0 59 3 defined $fname and ref $fname ne 'CODE'
1100 65 0 0 defined $re and $table =~ /$re/
1186 0 1731 904 defined $quote and length $quote > 1
1362 0 0 157 defined $table1 and defined $table2
1499 0 3 27 $self->{'dbh'} and my $dbh_method = $self->dbh->can($mname)
1532 3 0 15 defined $opt{'id'} and defined $opt{'primary_key'}

or 2 conditions

line l !l condition
83 70 0 $columns ||= []
197 164 59 delete $opt->{'model_class'} || 'DBIx::Custom::Model'
226 1810 1389 $param ||= {}
258 123 11 $opt{'table'} || []
271 12 250 $opt{'table_alias'} || {}
367 0 0 $ENV{'DBIX_CUSTOM_DEBUG_ENCODING'} || 'UTF-8'
406 60 0 $name_space ||= ''
557 3 0 shift() || {}
558 3 0 shift() || {}
594 2714 0 $self->{'quote'} || $self->quote || ''
596 2714 0 substr($quote, 0, 1) || ''
640 6 736 delete $opt{'param'} || {}
677 735 0 $found_tables->[-1] || ''
681 6 729 join(' ', keys %$param) || ''
741 824 0 $params ||= {}
818 86 3 $param ||= {}
863 3 824 $opts->{'wrap'} || {}
890 3 92 $opts->{'wrap'} || {}
978 188 0 $self->{'type_rule'} || {}
1051 223 3 $opt ||= {}
1074 224 131 $columns ||= []
1182 2635 0 $self->{'quote'} || $self->quote || ''
1184 2635 0 substr($quote, 0, 1) || ''
1202 0 0 $opts->{'wrap'} || {}
1289 585 0 $append ||= ''
1385 316 0 $self->quote || ''
1423 371 518 $where ||= {}
1498 30 9 $self->{'_methods'} ||= {}
1533 0 15 $opt{'option'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
67 9 61 0 $option->{'alias'} || $real_table
70 18 12 40 not defined $columns or $columns eq '*'
140 4064 0 0 $self->{'dbh'} ||= $self->_connect
161 29 15 30 $opt{'where'} or defined $opt{'id'}
15 27 3 $opt{'where'} or defined $opt{'id'} or $opt{'allow_delete_all'}
200 167 56 0 $model_name ||= $model_table
323 39 146 3011 defined $filter || defined $type_filters
429 30 30 20 $file eq '.' or $file eq '..'
460 9 0 0 $model_name ||= $model_class
461 0 9 0 $model_table ||= $model_name
537 0 9 24 not $columns or $columns eq '*'
654 6 46 0 $opt{'mytable_symbol'} || $self->mytable_symbol
753 23 10 791 defined $opt{'ctime'} or defined $opt{'mtime'}
822 68 15 6 $opt{'where'} or defined $opt{'id'}
15 3 3 $opt{'where'} or defined $opt{'id'} or $opt{'allow_update_all'}
1022 0 0 16 $self->exclude_table || $options{'exclude_table'}
1095 0 0 19 $self->exclude_table || $option{'exclude'}