Branch Coverage

blib/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm
Criterion Covered Total %
branch 0 70 0.0


line true false branch
28 0 0 if (not defined $self->preserve_case) { }
0 0 elsif ($self->preserve_case) { }
91 0 0 unless exists $rels{$fk}{'remote_table'}
108 0 0 if $DBD::Pg::VERSION >= "1.5"
149 0 0 if $name_aref
153 0 0 if (@col_names == @col_nums)
167 0 0 if $table_comment
185 0 0 if $column_comment
207 0 0 if ($data_type =~ /^(?:bigint|int8|bigserial|serial8|bool(?:ean)?|box|bytea|cidr|circle|date|double precision|float8|inet|integer|int|int4|line|lseg|macaddr|money|path|point|polygon|real|float4|smallint|int2|serial|serial4|text)\z/i) { }
0 0 elsif ($data_type =~ /^(?:interval|time|timestamp)\b/i) { }
0 0 elsif ($data_type =~ /^(?:bit(?: varying)?|varbit)\z/i) { }
0 0 elsif ($data_type =~ /^(?:numeric|decimal)\z/i and my $size = $info->{'size'}) { }
0 0 elsif (lc $data_type eq 'character varying') { }
0 0 elsif (lc $data_type eq 'character') { }
0 0 elsif ($DBD::Pg::VERSION >= 3.005002 || $self->dbh->{'pg_server_version'} < 90100 and my $values = $raw->{$col}{'pg_enum_values'}) { }
213 0 0 if (lc $data_type eq 'timestamp without time zone') { }
0 0 elsif (lc $data_type eq 'time without time zone') { }
227 0 0 if ($data_type =~ /^time\b/i) { }
0 0 elsif (not defined $precision && $precision =~ /^\d/ or $precision == 6) { }
228 0 0 if (not defined $precision && $precision =~ /^\d/) { }
235 0 0 $integer_datetimes =~ /^on\z/i ? :
238 0 0 if ($precision == $max_precision) { }
254 0 0 if $data_type =~ /var/i
262 0 0 if $precision
264 0 0 if not $precision and lc $data_type eq "bit"
276 0 0 unless ($info->{'size'})
306 0 0 if ($typetype and $typetype eq "e")
308 0 0 $self->dbh->{'pg_server_version'} >= 90100 ? :
326 0 0 if (ref $info->{'default_value'} eq "SCALAR")
328 0 0 if (${$info->{'default_value'};} =~ /\bnextval\('([^:]+)'/i) { }
0 0 elsif (lc ${$info->{'default_value'};} eq 'now()') { }
0 0 elsif (${$info->{'default_value'};} =~ /\bCURRENT_TIMESTAMP\b/) { }
348 0 0 if ($data_type =~ /^bool/i and exists $info->{'default_value'})
349 0 0 if ($info->{'default_value'} eq '0') { }
0 0 elsif ($info->{'default_value'} eq '1') { }