Branch Coverage

blib/lib/DBIx/ORM/Declarative.pm
Criterion Covered Total %
branch 22 58 37.9


line true false branch
39 2 3 if $table_methods{$table} and not $method
46 0 1 if $join_methods{$join} and not $method
60 0 0 if ($wantarray) { }
69 0 0 unless ($@)
71 0 0 $wantarray ? :
74 0 0 if ($res)
76 0 0 $wantarray ? :
79 0 0 if ($res)
83 0 0 if ($wantarray) { }
91 0 0 if $@
92 0 0 $wantarray ? :
107 0 13 exists $args{'handle'} ? :
109 0 13 if (not exists $args{'handle'} and 'DBI'->can('connect') and $args{'dsn'})
122 1 1 unless (ref $args[0])
129 0 1 unless (ref $arg)
142 7 6 unless ref $self
143 0 6 if (@_)
146 0 0 if $_[0]
149 0 6 unless exists $$self{'__handle'}
157 7 6 unless ref $self
158 0 6 if (@_)
171 1 1 if (@args < 2)
173 0 1 if (@args == 1)
176 0 0 if $schema and $self->can($schema)
191 0 1 unless $schema
202 1 0 unless (@{$schema_class . '::ISA';})
209 0 1 if ($sub eq 'DBIx::ORM::Declarative::import' and $pkg ne 'main')
213 0 0 unless $pkg->isa($schema_class)
228 2 0 unless $rv->isa($schema_class)