Branch Coverage

blib/lib/Migraine.pm
Criterion Covered Total %
branch 0 76 0.0


line true false branch
64 0 0 if ($self->migraine_metadata_present) { }
74 0 0 if ($r) { }
76 0 0 if (defined $$results{'value'}) { }
89 0 0 if ($r) { }
105 0 0 unless ($self->migraine_metadata_present)
107 0 0 unless $sth->execute
110 0 0 unless $sth->execute
114 0 0 unless $sth->execute('metadata_version', $SUPPORTED_METADATA_FORMAT)
124 0 0 if ($df == 0) { }
0 0 elsif ($df == 1) { }
0 0 elsif ($df == 2) { }
129 0 0 unless $dbh->do("ALTER TABLE migraine_meta ADD (name varchar(20),\n value varchar(200))")
135 0 0 unless $dbh->do('ALTER TABLE migraine_meta DROP version')
139 0 0 unless $dbh->do("CREATE TABLE migraine_migrations (id integer,\n PRIMARY KEY (id))")
164 0 0 unless $higher_version
170 0 0 if ($self->migraine_metadata_present) { }
174 0 0 if (defined $sth and $sth->execute) { }
191 0 0 unless $self->migraine_metadata_usable
194 0 0 if (defined $sth and $sth->execute($migration_id)) { }
197 0 0 if (defined $version and $version == $migration_id)
213 0 0 unless $params{'no_act'}
216 0 0 if $self->migration_applied($cnt)
239 0 0 if ($self->migration_applied($version))
245 0 0 if ($options{'before_migrate'})
251 0 0 if ($Migraine::EVAL_ERROR)
252 0 0 if ($options{'skip_missing_migrations'}) { }
261 0 0 if (defined $contents)
262 0 0 unless ($options{'no_act'})
265 0 0 if ($sth) { }
268 0 0 unless $r
277 0 0 if ($options{'after_migrate'})
287 0 0 if ($self->migraine_metadata_usable) { }
302 0 0 if scalar @ordered_migrations == 0
307 0 0 if ($id > $last_item + 1)
308 0 0 $last_item != $range_first_item ? :
318 0 0 $last_item != $range_first_item ? :
335 0 0 unless @migrations
336 0 0 unless scalar @migrations == 1