Condition Coverage

blib/lib/DBIx/Class/Schema/Loader/DBI.pm
Criterion Covered Total %
condition 25 82 30.4


and 3 conditions

line !l l&&!r l&&r condition
57 0 0 107 not $self->isa($subclass) and $self->load_optional_class($subclass)
150 0 0 0 $schema_name =~ /$system_schema/ and not $schema =~ /$system_schema/
155 12 0 0 $schema_name eq $system_schema and $schema ne $system_schema
364 1524 0 16 (exists $self->_tables->{$comments_table->sql_name} || undef) && &try(sub { $dbh->selectrow_array("SELECT comment_text\nFROM @{[$comments_table->sql_name];}\nWHERE table_name = @{[$dbh->quote($table->name)];}\n"); } )
388 2177 0 19 (exists $self->_tables->{$comments_table->sql_name} || undef) && &try(sub { $dbh->selectrow_array("SELECT comment_text\nFROM @{[$comments_table->sql_name];}\nWHERE table_name = @{[$dbh->quote($table->name)];}\nAND column_name = @{[$dbh->quote($column_name)];}\n"); } )
396 2 0 2194 not $comment and $dbh->can("column_info")
459 0 0 0 $self->db_schema and $self->db_schema->[0] ne "%"
0 0 0 $self->db_schema and $self->db_schema->[0] ne "%" and not &any(sub { $_ eq $uk_scm; } , @{$self->db_schema;})
520 1918 262 21 defined $size and defined $info->{'DECIMAL_DIGITS'}
556 0 0 0 defined $size and defined $sth->{'SCALE'}[$i]
581 0 2201 0 defined $type_num and $type_num =~ /^-?\d+\z/
2201 0 0 defined $type_num and $type_num =~ /^-?\d+\z/ and $dbh->can("type_info")
648 0 0 36 $info->{'TABLE_SCHEM'} eq $table->schema && $info->{'TABLE_NAME'} eq $table->name

or 2 conditions

line l !l condition
76 116 0 $self->dbh->get_info(29) || $self->schema->storage->sql_maker->quote_char || '"'
91 116 0 $self->dbh->get_info(41) || $self->schema->storage->sql_maker->name_sep || '.'
275 0 2337 $fields || \'*'
340 0 0 $row->{'COLUMN_NAME'} || ''
413 24 0 $table->schema || ''
532 0 2201 $self->_extra_column_info($table, $col_name, $column_info, $info) || {}
570 0 0 $self->_extra_column_info($table, $columns[$i], $column_info, $sth) || {}

or 3 conditions

line l !l&&r !l&&!r condition
143 12 0 0 $table_name1 || $table_name2
177 12 0 0 $schema_name ||= $schema
338 0 0 0 $row->{'TYPE'} eq "table" or defined $row->{'FILTER_CONDITION'}
0 0 0 $row->{'TYPE'} eq "table" or defined $row->{'FILTER_CONDITION'} or not $row->{'INDEX_NAME'}
0 0 0 $row->{'TYPE'} eq "table" or defined $row->{'FILTER_CONDITION'} or not $row->{'INDEX_NAME'} or not defined $row->{'ORDINAL_POSITION'}
442 0 0 0 $raw_rel->[11] || '__dcsld__' . $i++
465 0 0 0 $rels{$relid}{'tbl'} ||= "DBIx::Class::Schema::Loader::Table"->new("loader", $self, "name", $uk_tbl, "schema", $uk_scm, $self->_supports_db_schema ? () : ("ignore_schema", 1))

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
221 1 1 2 0 not $include xor _recurse_constraint($constraint, @{$_;})
224 0 0 364 0 not $include xor /$constraint/