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
105 0 0 513 not ref $connector and $connector
135 0 0 4070 ref $connector and $connector->can("dbh")
190 56 164 3 @_ % 2 != 0 and not ref $_[0]
211 0 223 0 $model->columns and @{$model->columns;}
555 506 0 18 @_ > 0 and not ref $_[0]
506 15 3 @_ > 0 and not ref $_[0] and $_[0] =~ /:/
600 0 1787 927 defined $quote and length $quote > 1
771 786 0 38 defined $opt{'id'} and not $multi
938 994 840 75 $type_rule->{$into} and my $filter = $type_rule->{$into}{$type_name}
942 0 66 9 defined $filter and ref $filter ne "CODE"
968 0 59 3 defined $fname and ref $fname ne "CODE"
1102 65 0 0 defined $re and $table =~ /$re/
1188 0 1731 904 defined $quote and length $quote > 1
1364 0 0 157 defined $table1 and defined $table2
1501 0 3 27 $self->{'dbh'} and my $dbh_method = $self->dbh->can($mname)
1534 3 0 15 defined $opt{'id'} and defined $opt{'primary_key'}

or 2 conditions

line l !l condition
85 70 0 $columns ||= []
199 164 59 delete $opt->{'model_class'} || 'DBIx::Custom::Model'
228 1810 1389 $param ||= {}
260 123 11 $opt{'table'} || []
273 12 250 $opt{'table_alias'} || {}
369 0 0 $ENV{'DBIX_CUSTOM_DEBUG_ENCODING'} || 'UTF-8'
408 60 0 $name_space ||= ""
559 3 0 shift() || {}
560 3 0 shift() || {}
596 2714 0 $self->{'quote'} || $self->quote || ''
598 2714 0 substr($quote, 0, 1) || ''
642 6 736 delete $opt{'param'} || {}
679 735 0 $found_tables->[-1] || ''
683 6 729 join(' ', keys %$param) || ''
743 824 0 $params ||= {}
820 86 3 $param ||= {}
865 3 824 $opts->{'wrap'} || {}
892 3 92 $opts->{'wrap'} || {}
980 188 0 $self->{'type_rule'} || {}
1053 223 3 $opt ||= {}
1076 224 131 $columns ||= []
1184 2635 0 $self->{'quote'} || $self->quote || ''
1186 2635 0 substr($quote, 0, 1) || ''
1204 0 0 $opts->{'wrap'} || {}
1291 585 0 $append ||= ""
1387 316 0 $self->quote || ''
1425 371 518 $where ||= {}
1500 30 9 $self->{'_methods'} ||= {}
1535 0 15 $opt{'option'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
69 9 61 0 $option->{'alias'} || $real_table
72 18 12 40 not defined $columns or $columns eq "*"
142 4064 0 0 $self->{'dbh'} ||= $self->_connect
163 29 15 30 $opt{'where'} or defined $opt{'id'}
15 27 3 $opt{'where'} or defined $opt{'id'} or $opt{'allow_delete_all'}
202 167 56 0 $model_name ||= $model_table
325 39 146 3011 defined $filter || defined $type_filters
431 30 30 20 $file eq "." or $file eq ".."
462 9 0 0 $model_name ||= $model_class
463 0 9 0 $model_table ||= $model_name
539 0 9 24 not $columns or $columns eq "*"
656 6 46 0 $opt{'mytable_symbol'} || $self->mytable_symbol
755 23 10 791 defined $opt{'ctime'} or defined $opt{'mtime'}
824 68 15 6 $opt{'where'} or defined $opt{'id'}
15 3 3 $opt{'where'} or defined $opt{'id'} or $opt{'allow_update_all'}
1024 0 0 16 $self->exclude_table || $options{'exclude_table'}
1097 0 0 19 $self->exclude_table || $option{'exclude'}