line |
true |
false |
branch |
31
|
0 |
0 |
if ($meta->table eq $table) |
43
|
1 |
27 |
unless $params{'class'} |
45
|
2 |
25 |
if (my $parent = $class->_is_inheriting($params{'class'})) |
49
|
1 |
24 |
unless $params{'table'} |
57
|
0 |
24 |
if ($params{'discover_schema'}) |
61
|
4 |
20 |
if $params{'columns'} |
62
|
0 |
24 |
if $params{'primary_key'} |
63
|
0 |
24 |
if $params{'unique_keys'} |
65
|
0 |
24 |
if $params{'auto_increment'} |
69
|
1 |
23 |
if ($params{'generate_columns_methods'}) |
73
|
1 |
23 |
if ($params{'generate_related_methods'}) |
100
|
0 |
0 |
if &first(sub {
$name eq $_;
}
, @$key) |
140
|
0 |
104 |
unless $name |
149
|
0 |
10 |
unless $self->is_column($name) |
166
|
1 |
2 |
if &first(sub {
$column eq $_;
}
, $self->get_primary_key) |
186
|
4 |
16 |
@_ == 1 && ref $_[0] eq 'ARRAY' ? : |
190
|
20 |
56 |
unless $name |
192
|
2 |
54 |
if (ref $options eq 'HASH') { } |
212
|
0 |
59 |
unless $name |
213
|
1 |
58 |
if $self->is_column($name) |
226
|
0 |
0 |
unless $name and $self->is_column($name) |
236
|
0 |
4 |
unless $self->{'primary_key'} |
241
|
0 |
6 |
@_ == 1 && ref $_[0] eq 'ARRAY' ? : |
244
|
2 |
4 |
unless $self->is_column($column) |
261
|
0 |
3 |
@_ == 1 && ref $_[0] eq 'ARRAY' ? : |
272
|
0 |
3 |
@_ == 1 && ref $_[0] eq 'ARRAY' ? : |
283
|
2 |
3 |
@_ == 1 && ref $_[0] eq 'ARRAY' ? : |
286
|
0 |
6 |
unless $self->is_column($column) |
305
|
1 |
1 |
unless $self->is_column($column) |
325
|
0 |
1 |
unless exists $self->{'relationships'}{$name} |
334
|
0 |
4 |
unless $name and $options |
348
|
2 |
2 |
unless $name and $options |
359
|
0 |
0 |
unless (eval {
do {
require DBIx::Inspector;
1
}
}) |
368
|
0 |
0 |
unless $table |
374
|
0 |
0 |
if (defined $column->column_def) |
375
|
0 |
0 |
$column->column_def =~ /^'(.*?)'/ ? : |
377
|
0 |
0 |
if ($column->type_name =~ /^bool/i) |
378
|
0 |
0 |
if ($column->column_def =~ /^\d/) { } |
382
|
0 |
0 |
$column->column_def =~ /^t/ ? : |
388
|
0 |
0 |
if ($column->type_name =~ /^bool/i) { } |
|
0 |
0 |
elsif ($column->type_name =~ /^(?:int|num|float|real|decimal)/i) { } |
395
|
0 |
0 |
$column->is_nullable eq 'YES' ? : |
452
|
2 |
32 |
if (my $parent_meta = $OBJECTS{$parent}) |