Branch Coverage

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


line true false branch
28 0 0 if (not defined $self->preserve_case) { }
0 0 elsif ($self->preserve_case) { }
97 0 0 unless exists $rels{$fk}{'remote_table'}
113 0 0 if $DBD::Pg::VERSION >= "1.5"
154 0 0 if $name_aref
158 0 0 if (@col_names == @col_nums)
172 0 0 if $table_comment
190 0 0 if $column_comment
214 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'}) { }
223 0 0 if (lc $data_type eq 'timestamp without time zone') { }
0 0 elsif (lc $data_type eq 'time without time zone') { }
237 0 0 if ($data_type =~ /^time\b/i) { }
0 0 elsif (not defined $precision && $precision =~ /^\d/ or $precision == 6) { }
238 0 0 if (not defined $precision && $precision =~ /^\d/) { }
245 0 0 $integer_datetimes =~ /^on\z/i ? :
247 0 0 if ($precision == $max_precision) { }
266 0 0 if $data_type =~ /var/i
275 0 0 if $precision
277 0 0 if not $precision and lc $data_type eq "bit"
291 0 0 unless ($info->{'size'})
325 0 0 if ($typetype and $typetype eq "e")
329 0 0 $self->dbh->{'pg_server_version'} >= 90100 ? :
347 0 0 if (ref $info->{'default_value'} eq "SCALAR")
350 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/) { }
373 0 0 unless ($info->{'is_auto_increment'})
374 0 0 unless %pkeys
377 0 0 if ($pkeys{$col})
384 0 0 if ($data_type =~ /^bool/i and exists $info->{'default_value'})
385 0 0 if ($info->{'default_value'} eq '0') { }
0 0 elsif ($info->{'default_value'} eq '1') { }