Condition Coverage

blib/lib/DBIx/TableLoader.pm
Criterion Covered Total %
condition 29 38 76.3


and 3 conditions

line !l l&&!r l&&r condition
181 1 1 41 $columns and @$columns

or 2 conditions

line l !l condition
138 8 8 $self->{'create_suffix'} ||= ')'
163 17 10 &try(sub { $self->_data_type_from_driver($self->default_sql_data_type); } ) || 'text'
212 9 7 $self->{'drop_prefix'} ||= 'DROP TABLE'
414 0 16 $self->{'quoted_column_names'} ||= [map({$self->{'dbh'}->quote_identifier($_);} @{$self->column_names;})]

or 3 conditions

line l !l&&r !l&&!r condition
94 130 15 1 $self->{'columns'} ||= $self->_get_custom_or_raw_row
114 7 9 0 $self->{'create_prefix'} ||= "CREATE $self->{'table_type'} TABLE " . $self->quoted_name . ' ('
128 6 10 0 $self->{'create_sql'} ||= join(' ', $self->create_prefix, join(', ', map({$self->{'dbh'}->quote_identifier($_->[0]) . ' ' . $_->[1];} @{$self->columns;})), $self->create_suffix)
163 19 27 0 $self->{'default_column_type'} ||= &try(sub { $self->_data_type_from_driver($self->default_sql_data_type); } ) || 'text'
173 1 27 0 $self->{'default_sql_data_type'} ||= &try(sub { require DBI; DBI::SQL_LONGVARCHAR(); } )
218 8 8 0 $self->{'drop_sql'} ||= join(' ', $self->drop_prefix, $self->quoted_name, $self->drop_suffix)
391 3 17 0 $self->{'name'} || $self->default_name
4 20 0 $self->{'_name'} ||= $self->{'name_prefix'} . ($self->{'name'} || $self->default_name) . $self->{'name_suffix'}
406 14 19 0 $self->{'quoted_name'} ||= $self->{'dbh'}->quote_identifier($self->{'catalog'}, $self->{'schema'}, $self->name)