Condition Coverage

blib/lib/DBIx/DataModel/Statement.pm
Criterion Covered Total %
condition 30 57 52.6


and 3 conditions

line !l l&&!r l&&r condition
57 0 0 172 $source and $source->isa("DBIx::DataModel::Source")
219 0 0 0 @$old_cols == 1 and $old_cols->[0] eq "*"
280 1840 176 0 defined $args->{$_} and $sqla_args{$_} = $args->{$_}
282 127 16 1 $result_as eq "firstrow" and $self->schema->autolimit_firstrow
645 1 0 134 $schema->{'is_singleton'} and not $schema->{'db_schema'}

or 2 conditions

line l !l condition
101 159 0 $self->{'args'} || {}
270 47 97 $args->{'-result_as'} || ''
282 0 1 $sqla_args{'-limit'} ||= 1
472 59 84 $self->arg('-result_as') || 'rows'
616 0 0 $self->page_size || 1
667 22 0 $self->sth->{'FetchHashKeyName'} || 'NAME'

or 3 conditions

line l !l&&r !l&&!r condition
33 0 0 0 &try(sub { my($sql, @bind) = $self->sql; 'DBIx::DataModel::Statement' . "($sql // " . join(', ', @bind) . ')'; } ) || overload::StrVal($self)
281 60 84 0 $sqla_args{'-columns'} ||= $meta_source->default_columns
384 0 137 0 @args or $self->status < "sqlized"
395 0 136 0 $self->{'args'}{'-dbi_prepare_method'} || $self->schema->dbi_prepare_method
484 108 34 1 $cache_result_class{$_} ||= $self->_find_result_class($_)
523 2 0 4 $should_wrap ||= !($sql =~ s/^SELECT\b.*?\bFROM\b/SELECT COUNT(*) FROM/i)
748 5 4 0 $aliased_tables{$table_name} || $table_name
754 9 0 0 $meta_schema->table($table_name) || &firstval(sub { ($_->{'db_name'} || '') eq $table_name; } , $meta_source, $meta_source->ancestors) || &firstval(sub { uc($_->{'db_name'} || '') eq uc $table_name; } , $meta_source, $meta_source->ancestors)
786 35 0 0 ref $schema || $schema
797 0 34 34 $is_loaded ||= &try(sub { &load($class); 1; } , &catch(sub { die $_ if not $_ =~ /^Can't locate(?! object method)/; } ))