| line |
true |
false |
branch |
|
17
|
0 |
1370 |
unless $$self{'schema'}->driver |
|
19
|
211 |
1159 |
if defined $ret[0] |
|
28
|
0 |
179 |
unless $size =~ /^\d+$/ |
|
29
|
7 |
172 |
if ($type =~ /int/i) { } |
|
|
0 |
172 |
elsif ($type =~ /(?:real|float|double|numeric|decimal)/i) { } |
|
|
170 |
2 |
elsif ($type =~ /char/i) { } |
|
30
|
0 |
7 |
if $size |
|
33
|
0 |
0 |
unless $decimals =~ /^\d+$/ |
|
34
|
0 |
0 |
if ($size and $decimals) { } |
|
|
0 |
0 |
elsif ($size) { } |
|
49
|
2 |
184 |
$$args{'options'}{'unsigned'} ? : |
|
50
|
0 |
186 |
$$args{'options'}{'zerofill'} ? : |
|
51
|
0 |
186 |
$$args{'options'}{'binary'} ? : |
|
52
|
0 |
186 |
$$args{'options'}{'ascii'} ? : |
|
53
|
0 |
186 |
$$args{'options'}{'unicode'} ? : |
|
60
|
176 |
10 |
unless (defined $default) |
|
63
|
2 |
8 |
if (ref $default and ref $default eq 'CODE') |
|
67
|
5 |
3 |
if ($$args{'type'} =~ /(?:int|real|float|double|numeric|decimal|bit)/i) |
|
77
|
0 |
176 |
$$opts{'null'} ? : |
|
|
10 |
176 |
$$opts{'required'} ? : |
|
|
0 |
186 |
$$opts{'auto_increment'} ? : |
|
|
0 |
186 |
$$self{'unique'} ? : |
|
|
0 |
186 |
$$self{'primary_key'} ? : |
|
|
0 |
186 |
$$self{'references'} ? : |
|
92
|
9 |
39 |
unless @{$key;} |
|
98
|
86 |
0 |
unless @{$unique;} |
|
110
|
96 |
0 |
unless @{$$self{'schema'}{'foreign'};} |
|
129
|
82 |
14 |
unless ref $hash eq 'HASH' |
|
131
|
0 |
96 |
$ret ? : |
|
151
|
2 |
94 |
if (my $name = $schema->options->{'key_as_unique'}) |
|
195
|
74 |
22 |
unless $ret[0] |