line |
true |
false |
branch |
135
|
8 |
0 |
ref $conf->{'schema'} eq 'CODE' ? :
|
145
|
0 |
28 |
unless $db_result and &blessed($db_result) and $db_result->isa($model_class->dbic)
|
162
|
0 |
9 |
unless @_
|
164
|
3 |
6 |
if (@_ == 1) { }
|
177
|
5 |
3 |
if (my $result = ($self->schema->resultset($model_class->dbic)->search(\%params))[0])
|
190
|
0 |
7 |
ref $_[0] ? :
|
210
|
0 |
9 |
if ($dbic_result->in_storage) { }
|
|
1 |
8 |
elsif (my $copy = $dbic_result->get_from_storage) { }
|
247
|
13 |
24 |
if $no_rel and exists $relationships{$attr}
|
249
|
17 |
84 |
if (&blessed(scalar $db_result->$attr) and $db_result->$attr->isa('DBIx::Class::ResultSet')) { }
|
252
|
17 |
0 |
$class_attr ? :
|
256
|
17 |
0 |
if ($factory)
|
279
|
0 |
5 |
if ($type eq 'many_to_many') { }
|
|
4 |
1 |
elsif ($type eq 'has_many') { }
|
316
|
3 |
0 |
if ($self->_dbic_result->in_storage)
|
343
|
11 |
30 |
unless ($self->_cached_dbic_attrs->{$model_class})
|
361
|
37 |
22 |
if $_->does('DBIC')
|
372
|
177 |
114 |
if $_->does('DBIC')
|
383
|
5 |
4 |
$type eq 'belongs_to' ? :
|
404
|
0 |
37 |
if (ref $value eq 'ARRAY') { }
|
|
5 |
32 |
elsif (&blessed($value) and $value->can('does') and $value->does('Model::Envoy')) { }
|