Branch Coverage

blib/lib/YATT/Lite/WebMVC0/DBSchema/DBIC.pm
Criterion Covered Total %
branch 35 90 38.8


line true false branch
26 0 1 if ($schema->{'cf_debug'})
36 0 0 ref $_[0] ? :
38 0 0 if ($schema->{'cf_debug'})
59 0 0 @_ ? :
64 0 0 unless ($schema->{'cf_DBIC'})
67 0 0 unless ($schema->{'cf_DBIC'} =~ /::/)
72 0 0 if (my(@args) = $schema->{'cf_DBH'} || lexpand($schema->{'cf_connection_spec'}))
84 0 4 unless @_ >= 2
97 0 4 if (ref $class_or_obj) { }
107 4 0 unless (*{$sym;}{'CODE'})
115 4 0 unless (*{$sym;}{'CODE'})
119 0 10 if $schema->{'cf_debug'}
121 9 1 if defined $dbic and ref $dbic
143 1 10 if ($tab->{'cf_view'}) { }
149 0 1 $tab->{'cf_virtual'} ? :
152 5 5 if $pk and $pk->{'cf_autoincrement'}
163 0 42 defined $_ ? :
165 0 42 if $col->{'cf_unique'}
169 10 1 if $pk
172 0 0 if $schema->{'cf_verbose'}
183 2 10 if (my $sub = $myPkg->can("add_relation_$relType"))
189 0 10 unless (defined $fTabName)
194 0 10 if $schema->{'cf_verbose'}
200 0 10 if ($@)
218 0 2 if $schema->{'cf_verbose'}
224 0 2 if ($@)
244 2 74 if (@_ == 2) { }
276 3 0 do { not defined $rowidCol } ? :
0 3 do { ref $keyCol eq 'ARRAY' } ? :
3 0 defined $keyCol ? :
281 0 0 if ref $_ eq 'HASH'
283 0 0 if (ref $_) { }
0 0 elsif (/\?/) { }
285 0 0 do { @comp % 2 == 0 } ? :
0 0 do { @comp == 1 } ? :
0 0 @comp ? :
300 0 0 unless my($col) = /^(\w+)/
313 0 0 unless (@value == @cols)
316 0 0 unless my $row = $rs->search(\[$sql, zip(\@cols, \@value)], @atts)->single
323 1 3 unless my $row = $rs->find({$keyCol, $value})
330 0 0 unless my $row = $rs->find({$keyCol, $value})
340 0 3 do { @morePkCol } ? :
3 0 (my($pkCol, @morePkCol) = $rs->result_source->primary_columns) ? :
373 1 1 unless &$to_find($value)
397 0 0 wantarray ? :