Branch Coverage

lib/Coteng.pm
Criterion Covered Total %
branch 40 62 64.5


line true false branch
32 0 2 unless $dbname
40 0 7 unless $dbname ||= $self->current_dbname
45 5 2 if (ref $db_info eq 'HASH') { }
2 0 elsif (ref $db_info eq 'ARRAY') { }
47 0 5 defined $db_info->{'user'} ? :
48 0 5 defined $db_info->{'passwd'} ? :
60 4 3 unless (in_scope_container())
79 3 18 if ($class and $row)
96 3 5 if ($class and @$rows)
117 0 2 if (ref $where ne 'HASH' and ref $where ne 'ARRAY' and ref $where ne 'SQL::Maker::Condition' and ref $where ne 'SQL::QueryMaker')
127 12 4 ref $klass ? :
129 16 0 if (ref $opt ne 'HASH')
151 2 1 ref $klass ? :
153 3 0 if (ref $opt ne 'HASH')
186 3 0 ref $klass ? :
188 3 0 if (ref $opt ne 'HASH')
192 0 3 if (ref $args ne 'HASH' and ref $args ne 'ARRAY')
205 0 1 unless $args
0 1 unless scalar @{[] unless $args;}
208 0 1 $dbh->{'Driver'}{'Name'} eq 'mysql' ? :
210 0 1 if ($can_multi_insert) { }
240 0 1 if (ref $column eq 'HASH')
265 1 17 if (@args == 1 and ref $args[0] eq 'HASH')
275 1 12 if (not is_class_loaded($class))
284 0 13 if ref $class or not defined $class or not length $class
290 1 30 unless exists $pack->{$part}
293 0 30 if ref $entry ne 'GLOB'
297 0 12 unless %{$pack;}
301 0 0 if exists $pack->{'VERSION'} and defined *{$pack->{'VERSION'};}{'SCALAR'} and defined ${$$pack{'VERSION'};}
303 7 0 if exists $pack->{'ISA'} and defined *{$pack->{'ISA'};}{'ARRAY'} and @{$pack->{'ISA'};} != 0
308 5 5 if ref $entry ne 'GLOB' or defined *{$entry;}{'CODE'}