Condition Coverage

lib/DBIx/Struct.pm
Criterion Covered Total %
condition 60 174 34.4


and 3 conditions

line !l l&&!r l&&r condition
160 0 1 0 not $defconn and check_package_scalar($connector_module, 'conn')
206 1 0 0 $dsn and not $dsn =~ /^dbi:/i
655 0 0 0 $href and %$href
670 0 0 0 $href and %$href
727 4 2 0 $chr->{'NULLABLE'} == 0 and not defined $chr->{'COLUMN_DEF'}
733 2 1 0 not @pkeys and @required
772 0 6 0 $ti and $ti->{'TYPE_NAME'} =~ /^time/
976 0 0 1 defined $_[1] and CORE::ref $_[1] eq 'ARRAY'
0 0 1 defined $_[1] and CORE::ref $_[1] eq 'ARRAY'
0 0 3 defined $_[1] and ref $_[1] eq 'ARRAY'
0 0 0 ref $insert{$_} eq 'ARRAY' and ref $insert{$_}[0] eq 'SCALAR'
0 0 0 ref $insert{$_} eq 'REF' and ref ${$insert{$_};} eq 'ARRAY'
0 0 1 defined $_[1] and CORE::ref $_[1] eq 'ARRAY'
0 0 3 defined $_[1] and ref $_[1] eq 'ARRAY'
0 0 0 ref $insert{$_} eq 'ARRAY' and ref $insert{$_}[0] eq 'SCALAR'
0 0 0 ref $insert{$_} eq 'REF' and ref ${$insert{$_};} eq 'ARRAY'
0 3 3 defined $_[1] and CORE::ref $_[1] eq 'ARRAY'
2 0 1 CORE::ref $insert{$_} eq 'ARRAY' and CORE::ref $insert{$_}[0] eq 'SCALAR'
2 0 0 CORE::ref $insert{$_} eq 'REF' and CORE::ref ${$insert{$_};} eq 'ARRAY'
9 0 1 @_ > 1 and CORE::ref $_[1] eq 'HASH'
1 0 0 CORE::ref $set_hash{$_} eq 'ARRAY' and CORE::ref $set_hash{$_}[0] eq 'SCALAR'
1 0 0 CORE::ref $set_hash{$_} eq 'REF' and CORE::ref ${$set_hash{$_};} eq 'ARRAY'
0 6 3 CORE::ref $self and @$self > 1
6 0 3 CORE::ref $self and @$self > 1 and %{$self->[1];}
2 0 1 CORE::ref $column_value eq 'ARRAY' and CORE::ref $column_value->[0] eq 'SCALAR'
2 0 0 CORE::ref $column_value eq 'REF' and CORE::ref ${$column_value;} eq 'ARRAY'
3 0 0 @_ > 1 and ref $_[1] eq 'HASH'
0 0 0 ref $set_hash{$_} eq 'ARRAY' and ref $set_hash{$_}[0] eq 'SCALAR'
0 0 0 ref $set_hash{$_} eq 'REF' and ref ${$set_hash{$_};} eq 'ARRAY'
0 3 0 ref $self and @$self > 1
3 0 0 ref $self and @$self > 1 and %{$self->[1];}
0 0 0 ref $column_value eq 'ARRAY' and ref $column_value->[0] eq 'SCALAR'
0 0 0 ref $column_value eq 'REF' and ref ${$column_value;} eq 'ARRAY'
3 0 0 @_ > 1 and ref $_[1] eq 'HASH'
0 0 0 ref $set_hash{$_} eq 'ARRAY' and ref $set_hash{$_}[0] eq 'SCALAR'
0 0 0 ref $set_hash{$_} eq 'REF' and ref ${$set_hash{$_};} eq 'ARRAY'
0 3 0 ref $self and @$self > 1
3 0 0 ref $self and @$self > 1 and %{$self->[1];}
0 0 0 ref $column_value eq 'ARRAY' and ref $column_value->[0] eq 'SCALAR'
0 0 0 ref $column_value eq 'REF' and ref ${$column_value;} eq 'ARRAY'
1111 0 1 0 $using_on eq 'on' and ref $nt->[3][1]
1129 0 0 0 $sql_grp and defined $having
1177 0 6 7 defined $_[$i] and not ref $_[$i]
1204 11 0 2 $sql_grp and defined $having
1218 2 1 10 !ref($table) && index($table, ' ') == -1
1223 1 6 3 $have_conditions and not ref $conditions

or 3 conditions

line l !l&&r !l&&!r condition
701 13 16 0 $ncn ||= make_name($table)
738 0 0 0 not exists $req{$ukr->{'COLUMN_NAME'}} or defined $ukr->{'FILTER_CONDITION'}
838 0 0 2 $fk->{'PKTABLE_NAME'} || $fk->{'UK_TABLE_NAME'}
839 0 0 2 $fk->{'PKCOLUMN_NAME'} || $fk->{'UK_COLUMN_NAME'}
864 0 0 2 $rk->{'PKTABLE_NAME'} || $rk->{'UK_TABLE_NAME'}
865 0 0 2 $rk->{'PKCOLUMN_NAME'} || $rk->{'UK_COLUMN_NAME'}
911 2 6 4 exists $pk_fields{$k} || ref $table
1071 0 0 1 $from[$idx][3] or not $from[$idx - 1][2]
1211 9 0 4 $conditions //= $up_conditions
1212 0 0 13 $order //= $up_order
1213 0 0 13 $limit //= $up_limit
1214 0 0 13 $offset //= $up_offset