Branch Coverage

blib/lib/EasyDBAccess.pm
Criterion Covered Total %
branch 0 664 0.0


line true false branch
227 0 0 $_ONCE == 1 ? :
228 0 0 if $_ONCE == 1
0 0 if ($once)
231 0 0 if ($param_count == 1) { }
0 0 elsif ($param_count == 2) { }
238 0 0 $_HIDE_CONN_PARAM ? :
242 0 0 if (scalar @$ra_caller_info == 0) { }
249 0 0 if ($_DEBUG and not $once)
252 0 0 wantarray ? :
255 0 0 unless (defined $option)
264 0 0 unless (defined $die_handler)
265 0 0 if (defined $$param{'err_file'})
266 0 0 if (defined &EasyHandler::foo) { }
276 0 0 if ($type eq 'mysql') { }
281 0 0 if (defined $socket) { }
287 0 0 if (defined $$param{$_})
300 0 0 if (defined $$param{$_})
318 0 0 unless (defined $dbh)
320 0 0 defined &DBI::errstr ? :
321 0 0 $_HIDE_CONN_PARAM ? :
325 0 0 if (scalar @$ra_caller_info == 0) { }
332 0 0 if ($_DEBUG and not $once)
333 0 0 if (defined $die_handler) { }
339 0 0 wantarray ? :
343 0 0 unless (defined $version)
349 0 0 if ($ver >= $_name_mysql_ver_41 and $_SETNAMES)
366 0 0 wantarray ? :
373 0 0 if (defined $_[0])
374 0 0 if (defined $_[0]{'dbh'})
386 0 0 if (ref $self eq $_pkg_name) { }
395 0 0 if ($$self{'type'} eq 'mysql') { }
396 0 0 if (defined $_[1] and $_[1] > 1)
397 0 0 defined $_[0] ? :
398 0 0 if ($rc == 0)
399 0 0 defined $_[0] ? :
400 0 0 defined $_[0] ? :
405 0 0 defined $_[0] ? :
406 0 0 if ($rc == 0)
410 0 0 defined $_[0] ? :
411 0 0 defined $_[0] ? :
422 0 0 if ($$self{'type'} eq 'mysql') { }
426 0 0 if ($rc == 1) { }
434 0 0 if ($succ) { }
450 0 0 if (defined $_[0] and ref $_[0] eq '' and $_[0] =~ /^([0-9a-fA-F]{8})([0-9a-fA-F]{8})$/)
464 0 0 unless (defined $v)
471 0 0 if (defined $_[2]) { }
475 0 0 utf8::is_utf8($_) ? :
482 0 0 if (utf8::is_utf8($_))
491 0 0 if ($ref eq 'ARRAY') { }
0 0 elsif ($ref eq 'HASH') { }
504 0 0 if (defined $_[1]) { }
516 0 0 if defined &utf8::is_utf8 and utf8::is_utf8($_)
517 0 0 unless m([^ !"\#\$%&'()*+,\-./0-9:;<=>?\@A-Z[\\\]^_`a-z{|}~])
531 0 0 if ($param_count == 1) { }
534 0 0 if ($type eq 'ARRAY') { }
0 0 elsif ($type eq 'HASH') { }
0 0 elsif ($type eq '') { }
541 0 0 if ($flag == 1)
548 0 0 length $str1 > $max_line ? :
556 0 0 if ($flag == 1)
564 0 0 length $str1 > $max_line ? :
567 0 0 unless (defined $data)
568 0 0 if ($data eq int $data)
569 0 0 if ($@)
570 0 0 if ($flag == 0) { }
0 0 elsif ($flag == 1) { }
582 0 0 if ($flag == 1)
589 0 0 length $str1 > $max_line ? :
594 0 0 defined $_[0] ? :
606 0 0 defined $array ? :
610 0 0 if (defined $_ and $_ ne '?') { }
611 0 0 if (exists $$hash{$_}) { }
621 0 0 wantarray ? :
631 0 0 if (exists $$hash{$_})
638 0 0 if ($flag != 0)
639 0 0 wantarray ? :
650 0 0 wantarray ? :
0 0 if ($item_count == 0)
653 0 0 unless (defined $max_count)
660 0 0 if (DEFAULT($$values[$i][$j]))
667 0 0 unless (DEFAULT($$values[$i][$j]))
674 0 0 if ($c >= $max_count)
680 0 0 if ($$self{'dbh'}->err)
682 0 0 defined $$self{'dbh'}->errstr ? :
687 0 0 if (scalar @$ra_caller_info == 0) { }
694 0 0 wantarray ? :
701 0 0 if ($c > 0)
707 0 0 if ($$self{'dbh'}->err)
709 0 0 defined $$self{'dbh'}->errstr ? :
714 0 0 if (scalar @$ra_caller_info == 0) { }
721 0 0 wantarray ? :
728 0 0 wantarray ? :
760 0 0 if ($param_count == 1) { }
0 0 elsif ($param_count == 3) { }
0 0 elsif ($param_count == 4) { }
777 0 0 if ($result) { }
791 0 0 if ($param_count == 1) { }
801 0 0 if ($param_count == 1) { }
0 0 elsif ($param_count == 2) { }
815 0 0 if ($param_count == 1) { }
817 0 0 if (&is_id($_)) { }
832 0 0 exists $_[0] ? :
833 0 0 if ($param_count == 1 or $param_count == 2 or $param_count == 3) { }
835 0 0 defined &_name_false ? :
0 0 if ($@)
836 0 0 defined &_name_false ? :
0 0 if ($num ne $str)
837 0 0 if ($param_count == 1) { }
0 0 elsif ($param_count == 2) { }
0 0 elsif ($param_count == 3) { }
849 0 0 if (!defined($min) || $num >= $min and !defined($max) || $num < $max) { }
850 0 0 defined &_name_true ? :
852 0 0 defined &_name_false ? :
857 0 0 defined &_name_pkg_name ? :
869 0 0 unless (defined $fh)
887 0 0 if (defined $bind_param and ref $bind_param eq 'ARRAY') { }
0 0 elsif (defined $bind_param and ref $bind_param eq 'HASH') { }
896 0 0 $_ONCE == 1 || $$self{'once'} == 1 ? :
897 0 0 if $_ONCE == 1
0 0 if $$self{'once'} == 1
0 0 if ($once)
899 0 0 if defined $$self{'err_str'}
901 0 0 if defined $$self{'err_code'}
903 0 0 unless (defined $sql_str)
910 0 0 if (scalar @$ra_caller_info == 0) { }
917 0 0 if ($_DEBUG and not $once)
918 0 0 if (defined $die_handler) { }
924 0 0 wantarray ? :
927 0 0 if (defined $inline_param)
931 0 0 unless ($succ)
938 0 0 if (scalar @$ra_caller_info == 0) { }
945 0 0 if ($_DEBUG and not $once)
946 0 0 if (defined $die_handler) { }
952 0 0 wantarray ? :
959 0 0 if (DEFAULT($$bind_param[$j]))
966 0 0 unless (DEFAULT($$bind_param[$j]))
974 0 0 $$self{'encoding'} eq $_name_utf8 ? :
975 0 0 if ($unicode)
977 0 0 if ($$self{'dbh'}->err)
979 0 0 defined $$self{'dbh'}->errstr ? :
988 0 0 if (scalar @$ra_caller_info == 0) { }
995 0 0 if ($_DEBUG and not $once)
996 0 0 if (defined $die_handler) { }
1002 0 0 wantarray ? :
1004 0 0 wantarray ? :
1010 0 0 if (defined $bind_param and ref $bind_param eq 'ARRAY') { }
0 0 elsif (defined $bind_param and ref $bind_param eq 'HASH') { }
1019 0 0 $_ONCE == 1 || $$self{'once'} == 1 ? :
1020 0 0 if $_ONCE == 1
0 0 if $$self{'once'} == 1
0 0 if ($once)
1022 0 0 if defined $$self{'err_str'}
1024 0 0 if defined $$self{'err_code'}
1026 0 0 unless (defined $sql_str)
1033 0 0 if (scalar @$ra_caller_info == 0) { }
1040 0 0 if ($_DEBUG and not $once)
1041 0 0 if (defined $die_handler) { }
1047 0 0 wantarray ? :
1050 0 0 if (defined $inline_param)
1054 0 0 unless ($succ)
1061 0 0 if (scalar @$ra_caller_info == 0) { }
1068 0 0 if ($_DEBUG and not $once)
1069 0 0 if (defined $die_handler) { }
1075 0 0 wantarray ? :
1079 0 0 $$self{'encoding'} eq $_name_utf8 ? :
1080 0 0 if ($unicode)
1084 0 0 if ($sth->err)
1086 0 0 defined $sth->errstr ? :
1096 0 0 if (scalar @$ra_caller_info == 0) { }
1103 0 0 if ($_DEBUG and not $once)
1104 0 0 if (defined $die_handler) { }
1110 0 0 wantarray ? :
1114 0 0 if ($sth->err)
1116 0 0 defined $sth->errstr ? :
1126 0 0 if (scalar @$ra_caller_info == 0) { }
1133 0 0 if ($_DEBUG and not $once)
1134 0 0 if (defined $die_handler) { }
1140 0 0 wantarray ? :
1143 0 0 if ($unicode)
1144 0 0 wantarray ? :
1151 0 0 if (defined $bind_param and ref $bind_param eq 'ARRAY') { }
0 0 elsif (defined $bind_param and ref $bind_param eq 'HASH') { }
1160 0 0 $_ONCE == 1 || $$self{'once'} == 1 ? :
1161 0 0 if $_ONCE == 1
0 0 if $$self{'once'} == 1
0 0 if ($once)
1163 0 0 if defined $$self{'err_str'}
1165 0 0 if defined $$self{'err_code'}
1167 0 0 unless (defined $sql_str)
1174 0 0 if (scalar @$ra_caller_info == 0) { }
1181 0 0 if ($_DEBUG and not $once)
1182 0 0 if (defined $die_handler) { }
1188 0 0 wantarray ? :
1191 0 0 if (defined $inline_param)
1195 0 0 unless ($succ)
1202 0 0 if (scalar @$ra_caller_info == 0) { }
1209 0 0 if ($_DEBUG and not $once)
1210 0 0 if (defined $die_handler) { }
1216 0 0 wantarray ? :
1220 0 0 $$self{'encoding'} eq $_name_utf8 ? :
1221 0 0 if ($unicode)
1225 0 0 if ($sth->err)
1227 0 0 defined $sth->errstr ? :
1237 0 0 if (scalar @$ra_caller_info == 0) { }
1244 0 0 if ($_DEBUG and not $once)
1245 0 0 if (defined $die_handler) { }
1251 0 0 wantarray ? :
1255 0 0 if ($sth->err) { }
0 0 elsif (not $succ) { }
1257 0 0 defined $sth->errstr ? :
1267 0 0 if (scalar @$ra_caller_info == 0) { }
1274 0 0 if ($_DEBUG and not $once)
1275 0 0 if (defined $die_handler) { }
1281 0 0 wantarray ? :
1289 0 0 wantarray ? :
1292 0 0 if ($unicode)
1293 0 0 wantarray ? :
1299 0 0 if (defined $bind_param and ref $bind_param eq 'ARRAY') { }
0 0 elsif (defined $bind_param and ref $bind_param eq 'HASH') { }
1308 0 0 $_ONCE == 1 || $$self{'once'} == 1 ? :
1309 0 0 if $_ONCE == 1
0 0 if $$self{'once'} == 1
0 0 if ($once)
1311 0 0 if defined $$self{'err_str'}
1313 0 0 if defined $$self{'err_code'}
1315 0 0 unless (defined $sql_str)
1322 0 0 if (scalar @$ra_caller_info == 0) { }
1329 0 0 if ($_DEBUG and not $once)
1330 0 0 if (defined $die_handler) { }
1338 0 0 wantarray ? :
1342 0 0 if (defined $inline_param)
1346 0 0 unless ($succ)
1353 0 0 if (scalar @$ra_caller_info == 0) { }
1360 0 0 if ($_DEBUG and not $once)
1361 0 0 if (defined $die_handler) { }
1369 0 0 wantarray ? :
1374 0 0 $$self{'encoding'} eq $_name_utf8 ? :
1375 0 0 if ($unicode)
1379 0 0 if ($sth->err)
1381 0 0 defined $sth->errstr ? :
1391 0 0 if (scalar @$ra_caller_info == 0) { }
1398 0 0 if ($_DEBUG and not $once)
1399 0 0 if (defined $die_handler) { }
1407 0 0 wantarray ? :
1412 0 0 if ($sth->err) { }
0 0 elsif (not $succ) { }
1414 0 0 defined $sth->errstr ? :
1424 0 0 if (scalar @$ra_caller_info == 0) { }
1431 0 0 if ($_DEBUG and not $once)
1432 0 0 if (defined $die_handler) { }
1438 0 0 wantarray ? :
1446 0 0 wantarray ? :
1449 0 0 if ($unicode)
1450 0 0 wantarray ? :
1456 0 0 if (defined $bind_param and ref $bind_param eq 'ARRAY') { }
0 0 elsif (defined $bind_param and ref $bind_param eq 'HASH') { }
1465 0 0 $_ONCE == 1 || $$self{'once'} == 1 ? :
1466 0 0 if $_ONCE == 1
0 0 if $$self{'once'} == 1
0 0 if ($once)
1468 0 0 if defined $$self{'err_str'}
1470 0 0 if defined $$self{'err_code'}
1472 0 0 unless (defined $sql_str)
1479 0 0 if (scalar @$ra_caller_info == 0) { }
1486 0 0 if ($_DEBUG and not $once)
1487 0 0 if (defined $die_handler) { }
1493 0 0 wantarray ? :
1496 0 0 if (defined $inline_param)
1500 0 0 unless ($succ)
1507 0 0 if (scalar @$ra_caller_info == 0) { }
1514 0 0 if ($_DEBUG and not $once)
1515 0 0 if (defined $die_handler) { }
1521 0 0 wantarray ? :
1525 0 0 $$self{'encoding'} eq $_name_utf8 ? :
1526 0 0 if ($unicode)
1530 0 0 unless ($succ)
1532 0 0 defined $sth->errstr ? :
1542 0 0 if (scalar @$ra_caller_info == 0) { }
1549 0 0 if ($_DEBUG and not $once)
1550 0 0 if (defined $die_handler) { }
1556 0 0 wantarray ? :
1560 0 0 if ($sth->err)
1562 0 0 defined $sth->errstr ? :
1572 0 0 if (scalar @$ra_caller_info == 0) { }
1579 0 0 if ($_DEBUG and not $once)
1580 0 0 if (defined $die_handler) { }
1586 0 0 wantarray ? :
1592 0 0 if ($unicode)
1593 0 0 wantarray ? :
1599 0 0 if (defined $bind_param and ref $bind_param eq 'ARRAY') { }
0 0 elsif (defined $bind_param and ref $bind_param eq 'HASH') { }
1608 0 0 $_ONCE == 1 || $$self{'once'} == 1 ? :
1609 0 0 if $_ONCE == 1
0 0 if $$self{'once'} == 1
0 0 if ($once)
1611 0 0 if defined $$self{'err_str'}
1613 0 0 if defined $$self{'err_code'}
1615 0 0 unless (defined $sql_str)
1622 0 0 if (scalar @$ra_caller_info == 0) { }
1629 0 0 if ($_DEBUG and not $once)
1630 0 0 if (defined $die_handler) { }
1636 0 0 wantarray ? :
1639 0 0 if (defined $inline_param)
1643 0 0 unless ($succ)
1650 0 0 if (scalar @$ra_caller_info == 0) { }
1657 0 0 if ($_DEBUG and not $once)
1658 0 0 if (defined $die_handler) { }
1664 0 0 wantarray ? :
1668 0 0 $$self{'encoding'} eq $_name_utf8 ? :
1669 0 0 if ($unicode)
1673 0 0 if ($sth->err)
1675 0 0 defined $sth->errstr ? :
1685 0 0 if (scalar @$ra_caller_info == 0) { }
1692 0 0 if ($_DEBUG and not $once)
1693 0 0 if (defined $die_handler) { }
1699 0 0 wantarray ? :
1703 0 0 if ($sth->err)
1705 0 0 defined $sth->errstr ? :
1715 0 0 if (scalar @$ra_caller_info == 0) { }
1722 0 0 if ($_DEBUG and not $once)
1723 0 0 if (defined $die_handler) { }
1729 0 0 wantarray ? :
1732 0 0 if ($unicode)
1733 0 0 wantarray ? :
1739 0 0 if (scalar @_ == 0) { }
0 0 elsif (scalar @_ == 1) { }
1742 0 0 ref $_[0] eq 'EasyDBAccess::CONSTANT' && $_[0][0] == $code ? :
1763 0 0 if ($param_count == 1) { }
0 0 elsif ($param_count == 2) { }
0 0 elsif ($param_count == 3) { }
1783 0 0 if ($$self{'type'} == $_type_value) { }
0 0 elsif ($$self{'type'} == $_type_sub) { }