Condition Coverage

blib/lib/YATT/Lite/WebMVC0/DBSchema.pm
Criterion Covered Total %
condition 0 101 0.0


and 3 conditions

line !l l&&!r l&&r condition
329 0 0 0 $schema->{'cf_verbose'} and $create =~ /^create table /i
398 0 0 0 $schema->{'dbtype'} and my $sub = $schema->can("$schema->{'dbtype'}_has_type")
532 0 0 0 $tab and not $tab->{'not_configured'}
569 0 0 0 $tab->{'pk'} and @args
598 0 0 0 not ref $item and $item =~ s/\.(\w+)$//
716 0 0 0 not $pk_ok and $tab->{'pk'}
777 0 0 0 $col->{'cf_type'} =~ /^int/i and $col->{'cf_primary_key'}

or 2 conditions

line l !l condition
76 0 0 $msg ||= ''
169 0 0 $self->{'cf_group_writable'} // 1
282 0 0 $schema->{'dbtype'} //= 'sqlite'
284 0 0 $schema->{'cf_auto_create'} //= 1

or 3 conditions

line l !l&&r !l&&!r condition
126 0 0 0 $class //= caller
194 0 0 0 $schema->{'cf_DBH'} // $schema->make_connection
227 0 0 0 ref $spec eq 'ARRAY' or not ref $spec
293 0 0 0 $attr{$_} //= $default{$_}
312 0 0 0 $schema->{'cf_DBH'} || $schema->make_connection(\@spec)
402 0 0 0 $dbh ||= $schema->dbh
432 0 0 0 $dbh || $schema->dbh
438 0 0 0 $dbh ||= $schema->dbh
487 0 0 0 $fkName //= do { if (my YATT::Lite::WebMVC0::DBSchema::Column $pk = $self->get_table_pk($subTab) || $self->get_table_pk($tab)) { $pk->{'cf_name'}; } }
488 0 0 0 $self->get_table_pk($subTab) || $self->get_table_pk($tab)
507 0 0 0 $self->{'table_dict'}{$name} //= do { push @{$$self{'table_list'};}, my YATT::Lite::WebMVC0::DBSchema::Table $tab = $self->Table->new('name', $name); $tab->{'not_configured'} = 1; $tab }
602 0 0 0 $relSpec->[0] // lc $subTab->{'cf_name'}
604 0 0 0 $relSpec->[1] // $fkCol->{'cf_name'}
0 0 0 ($relSpec->[1] // $fkCol->{'cf_name'}) // $subTab->{'reference_dict'}{$tab->{'cf_name'}}
0 0 0 $fkName //= ($relSpec->[1] // $fkCol->{'cf_name'}) // $subTab->{'reference_dict'}{$tab->{'cf_name'}}
688 0 0 0 $fkName || $myColName
703 0 0 0 $opts->{'dbtype'} || $schema->default_dbtype
704 0 0 0 $schema->can($dbtype . '_sql_create_column') || $schema->can('sql_create_column')
762 0 0 0 $schema->{'cf_coltype_map'}{$typeName} // $typeName
856 0 0 0 $sth ||= $self->dbh->prepare($sql)
871 0 0 0 $sth ||= $self->dbh->prepare($sql)
884 0 0 0 $sth ||= $self->dbh->prepare($sql)
896 0 0 0 $rowidCol ||= $self->rowid_col($tab)
1012 0 0 0 ref $self || $self