Branch Coverage

blib/lib/Jifty/DBI/Schema.pm
Criterion Covered Total %
branch 38 60 63.3


line true false branch
69 129 21 if $#_
74 9 12 unless $typehandler
110 29 13 unless $SIG{'__DIE__'} and $SIG{'__DIE__'} == \&filter_die
125 0 42 if ($_[0] =~ /near "is (\d+)"/) { }
0 42 elsif ($_[0] =~ /Undefined subroutine &Jifty::DBI::Schema::column|Can't locate object method "type" via package "(?:is|are)"/) { }
152 0 0 $INC{'Jifty/Record.pm'} ? :
220 84 294 if $sym eq 'lazy' or $sym eq 'defer'
224 294 0 if \&{"${from}::$sym";} == \&$sym
228 94 94 unless ref $column
243 0 0 length $_[1] ? :
247 0 0 length $_[1] ? :
251 0 0 length $_[1] ? :
284 0 94 if ($from =~ s/::Schema$// and not $from =~ /Script/)
287 0 0 unless $$from{'_seen_column_warning'}++
317 0 96 unless UNIVERSAL::isa($from, 'Jifty::DBI::Record')
321 0 96 if grep {not UNIVERSAL::isa($_, 'Jifty::DBI::Schema::Trait');} @_
327 0 96 if delete $column->attributes->{'not_null'}
329 95 1 unless defined $column->sort_order
336 8 88 if (my $refclass = $column->refers_to) { }
339 3 5 if (ref $refclass eq 'ARRAY')
345 0 8 unless (UNIVERSAL::isa($refclass, 'Jifty::DBI::Record') or UNIVERSAL::isa($refclass, 'Jifty::DBI::Collection'))
348 0 0 if $UNIVERSAL::require::ERROR
351 6 2 if (UNIVERSAL::isa($refclass, 'Jifty::DBI::Record')) { }
2 0 elsif (UNIVERSAL::isa($refclass, 'Jifty::DBI::Collection')) { }
353 5 1 unless $column->by
356 5 1 unless ($column->type)
366 1 5 if ($name =~ /(.*)_\Q$by\E$/) { }
404 0 2 unless $column->by
410 3 85 unless $column->type
413 6 90 if (my $handler = $column->attributes->{'_init_handler'})