Condition Coverage

blib/lib/YATT/Lite/WebMVC0/DBSchema.pm
Criterion Covered Total %
condition 45 98 45.9


and 3 conditions

line !l l&&!r l&&r condition
329 0 0 0 do { $create =~ /^create table /i if $schema->{'cf_verbose'} } && do { print STDERR "CREATE TABLE $table->{'cf_name'}\n" }
401 13 0 10 $schema->{'dbtype'} and my $sub = $schema->can("$schema->{'dbtype'}_has_type")
535 0 33 0 $tab and not $tab->{'not_configured'}
572 3 0 0 $tab->{'pk'} and @args
601 13 20 0 not ref $item and $item =~ s/\.(\w+)$//
719 23 0 3 not $pk_ok and $tab->{'pk'}

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
126 0 0 0 $class //= caller
194 20 1 0 $schema->{'cf_DBH'} // $schema->make_connection
227 5 0 0 ref $spec eq 'ARRAY' or not ref $spec
293 0 10 5 $attr{$_} //= $default{$_}
312 1 3 0 $schema->{'cf_DBH'} || $schema->make_connection(\@spec)
405 13 0 0 $dbh ||= $schema->dbh
435 0 0 0 $dbh || $schema->dbh
441 0 0 0 $dbh ||= $schema->dbh
490 15 3 0 $fkName //= do { if (my YATT::Lite::WebMVC0::DBSchema::Column $pk = $self->get_table_pk($subTab) || $self->get_table_pk($tab)) { $pk->{'cf_name'}; } }
491 3 0 0 $self->get_table_pk($subTab) || $self->get_table_pk($tab)
510 58 33 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 }
605 14 19 0 $relSpec->[0] // lc $subTab->{'cf_name'}
607 20 0 6 $relSpec->[1] // $fkCol->{'cf_name'}
0 0 6 ($relSpec->[1] // $fkCol->{'cf_name'}) // $subTab->{'reference_dict'}{$tab->{'cf_name'}}
7 20 6 $fkName //= ($relSpec->[1] // $fkCol->{'cf_name'}) // $subTab->{'reference_dict'}{$tab->{'cf_name'}}
691 3 17 13 $fkName || $myColName
706 0 26 0 $opts->{'dbtype'} || $schema->default_dbtype
707 26 0 0 $schema->can($dbtype . '_sql_create_column') || $schema->can('sql_create_column')
765 0 64 0 $schema->{'cf_coltype_map'}{$typeName} // $typeName
859 1 2 0 $sth ||= $self->dbh->prepare($sql)
874 0 2 0 $sth ||= $self->dbh->prepare($sql)
887 1 3 0 $sth ||= $self->dbh->prepare($sql)
899 0 2 0 $rowidCol ||= $self->rowid_col($tab)
1015 0 0 0 ref $self || $self