Condition Coverage

blib/lib/DBD/SQLeet.pm
Criterion Covered Total %
condition 85 137 62.0


and 2 conditions

line l !l condition
36 0 95 not $methods_are_installed and 1

and 3 conditions

line !l l&&!r l&&r condition
118 253 0 0 $^O =~ /MSWin32/ and $real ne ':memory:'
253 0 0 $^O =~ /MSWin32/ and $real ne ':memory:' and $real ne ''
0 0 0 $^O =~ /MSWin32/ and $real ne ':memory:' and $real ne '' and not $real =~ /^file:/
0 0 0 $^O =~ /MSWin32/ and $real ne ':memory:' and $real ne '' and not $real =~ /^file:/ and not -f $real
188 128 0 264 defined $_[0] and defined $_[1]
214 1 41 2835 defined $statement and not defined $attr
42 57 2778 defined $statement and not defined $attr and not @bind_values
246 1 0 0 $file and not -f $file
287 13 2 1 defined $cat_val and $cat_val eq '%'
15 0 1 defined $cat_val and $cat_val eq '%' and defined $sch_val
2 0 1 defined $cat_val and $cat_val eq '%' and defined $sch_val and $sch_val eq ''
0 0 1 defined $cat_val and $cat_val eq '%' and defined $sch_val and $sch_val eq '' and defined $tbl_val
0 0 1 defined $cat_val and $cat_val eq '%' and defined $sch_val and $sch_val eq '' and defined $tbl_val and $tbl_val eq ''
13 0 2 defined $cat_val and $cat_val eq ''
13 0 2 defined $cat_val and $cat_val eq '' and defined $sch_val
0 1 1 defined $cat_val and $cat_val eq '' and defined $sch_val and $sch_val eq '%'
1 0 1 defined $cat_val and $cat_val eq '' and defined $sch_val and $sch_val eq '%' and defined $tbl_val
1 0 1 defined $cat_val and $cat_val eq '' and defined $sch_val and $sch_val eq '%' and defined $tbl_val and $tbl_val eq ''
13 0 1 defined $cat_val and $cat_val eq ''
13 0 1 defined $cat_val and $cat_val eq '' and defined $sch_val
0 0 1 defined $cat_val and $cat_val eq '' and defined $sch_val and $sch_val eq ''
0 0 1 defined $cat_val and $cat_val eq '' and defined $sch_val and $sch_val eq '' and defined $tbl_val
0 0 1 defined $cat_val and $cat_val eq '' and defined $sch_val and $sch_val eq '' and defined $tbl_val and $tbl_val eq ''
0 0 1 defined $cat_val and $cat_val eq '' and defined $sch_val and $sch_val eq '' and defined $tbl_val and $tbl_val eq '' and defined $typ_val
0 0 1 defined $cat_val and $cat_val eq '' and defined $sch_val and $sch_val eq '' and defined $tbl_val and $tbl_val eq '' and defined $typ_val and $typ_val eq '%'
406 40 0 9 defined $schema and $schema ne '%'
40 3 6 defined $schema and $schema ne '%' and $schema ne $dbname
419 3 0 52 defined $table and $table ne '%'
3 30 22 defined $table and $table ne '%' and $table ne $tbname
433 29 0 4 @pk > 1 and $row->{'sql'} =~ /\bPRIMARY\s+KEY\s*\(\s* ( (?: ( [a-z_][a-z0-9_]* | (["'`])(?:\3\3|(?!\3).)+?\3(?!\3) | \[[^\]]+\] ) \s*,\s* )+ ( [a-z_][a-z0-9_]* | (["'`])(?:\5\5|(?!\5).)+?\5(?!\5) | \[[^\]]+\] ) ) \s*\)/six
565 10 0 2 defined $fk_schema and $fk_schema ne '%'
10 1 1 defined $fk_schema and $fk_schema ne '%' and $fk_schema ne $dbname
576 6 0 20 defined $fk_table and $fk_table ne '%'
6 4 16 defined $fk_table and $fk_table ne '%' and $fk_table ne $tbname
582 10 0 4 defined $pk_table and $pk_table ne '%'
10 1 3 defined $pk_table and $pk_table ne '%' and $pk_table ne $row->{'table'}
604 7 0 4 defined $pk_schema and $pk_schema ne '%'
7 2 2 defined $pk_schema and $pk_schema ne '%' and $pk_schema ne $table_info{$row->{'table'}}{'schema'}
664 8 0 0 defined $schema and $schema ne '%'
8 0 0 defined $schema and $schema ne '%' and $schema ne $dbname
675 0 0 8 defined $table and $table ne '%'
0 4 4 defined $table and $table ne '%' and uc $table ne uc $tbname
682 8 4 4 $unique_only and not $row->{'unique'}
752 1 5 1 defined $col_val and $col_val eq '%'

or 3 conditions

line l !l&&r !l&&!r condition
218 2755 0 23 index($statement, ';') == -1 or $allow_multiple_statements