Branch Coverage

lib/UR/DataSource/Pg.pm
Criterion Covered Total %
branch 9 36 25.0


line true false branch
63 0 0 unless defined $dbh
71 0 0 if $table_name =~ /^(pg_|sql_)/
82 0 0 if ($dbh->err)
121 0 0 unless $dbh
124 0 0 unless $sth
156 0 0 unless (defined $urtype)
173 0 0 unless defined $column_objects->[$n]
174 0 0 if (uc $column_objects->[$n]->data_type eq 'BLOB')
189 0 4 if ($left_type->isa($right_type) or $right_type->isa($left_type))
197 0 4 if ($operator ne 'like' or not $left_type->isa('UR::Value::Text') || $right_type->isa('UR::Value::Text'))
205 0 4 $left_type->isa('UR::Value::Text') ? :
209 3 1 if ($data_type->isa('UR::Value::Timestamp')) { }
1 0 elsif ($data_type->isa('UR::Value::DateTime')) { }
228 3 0 if ($is_text_type)
234 1 2 if ($is_desc)
247 0 0 if ($schema_name)
250 0 0 unless ($exists)
251 0 0 unless $dbh->do("CREATE SCHEMA $schema_name")