Branch Coverage: lib/DBIx/SchemaChecksum.pm

# Branch Coverage

File: | lib/DBIx/SchemaChecksum.pm
Coverage: | 56.5%

line | % | coverage | branch
--- | --- | --- | ---
149 | 50 | T | F | if @pks
160 | 50 | T | F | if ($$data{'pg_enum_values'})
165 | 50 | T | F | if (my $default = $$info{'COLUMN_DEF'})
166 | 0 | T | F | if ($default =~ /nextval/)
168 | 0 | T | F | if ($1)
186 | 50 | T | F | if ($sth_fk)
200 | 50 | T | F | if ($INC{'DBD/Pg.pm'})
209 | 0 | T | F | if @unique
238 | 50 | T | F | unless $dir
239 | 100 | T | F | unless -d $dir
241 | 50 | T | F | if $self->verbose
249 | 0 | T | F | unless ($pre or $post)
250 | 0 | T | F | if $self->verbose
254 | 100 | T | F | if ($pre eq $post)
255 | 50 | T | F | if ($update_info{$pre}) { }
258 | 50 | T | F | unless $item eq 'SAME_CHECKSUM'
267 | 100 | T | F | if ($update_info{$pre} and $update_info{$pre}[0] eq 'SAME_CHECKSUM') { }
270 | 50 | T | F | if ($post eq $pre) { }
284 | 100 | T | F | if %update_info
305 | 100 | T | F | unless $filename
309 | 100 | T | F | unless open my $fh, '<', $filename
311 | 100 | T | F | if (/^--\s+(pre|post)SHA1sum:?\s+([0-9A-Fa-f]{40,})\s+$/)
316 | 100 | T | F | unless $checksums{$_}