Branch Coverage

blib/lib/MySQL/Diff/Table.pm
Criterion Covered Total %
branch 16 48 33.3


line true false branch
67 0 2 unless $self->{'def'}
146 0 0 $_[0] && $self->{'fields'}{$_[0]} ? :
147 0 0 $_[0] && $self->{'primary'}{$_[0]} ? :
148 0 0 $_[0] && $self->{'indices'}{$_[0]} ? :
149 0 0 $_[0] && $self->{'unique'}{$_[0]} ? :
150 0 0 $_[0] && $self->{'fulltext'}{$_[0]} ? :
151 0 0 $_[0] && $self->{'auto_inc'}{$_[0]} ? :
166 2 0 if ($lines[0] =~ /^\s*create\s+table\s+(\S+)\s+\(\s*$/i) { }
178 1 6 if (/^PRIMARY\s+KEY\s+(.+)$/)
181 0 1 if $self->{'primary_key'}
190 0 6 if (/^(?:CONSTRAINT\s+(.*)?)?\s+FOREIGN\s+KEY\s+(.*)$/)
193 0 0 if $self->{'foreign_key'}{$key}
199 0 6 if (/^(KEY|UNIQUE(?: KEY)?)\s+(\S+?)(?:\s+USING\s+(?:BTREE|HASH|RTREE))?\s*\((.*)\)(?:\s+USING\s+(?:BTREE|HASH|RTREE))?$/)
202 0 0 if $self->{'indices'}{$key}
204 0 0 if $type =~ /unique/i
205 0 0 defined $self->{'unique'}{$key} ? :
209 0 6 if (/^(FULLTEXT(?:\s+KEY|INDEX)?)\s+(\S+?)\s*\((.*)\)$/)
212 0 0 if $self->{'fulltext'}{$key}
219 1 5 if (/^\)\s*(.*?);$/)
225 5 0 if (/^(\S+)\s*(.*)/)
228 1 4 if $self->{'fields'}{$field}
231 4 0 unless $fdef =~ /\s+AUTO_INCREMENT\b/
241 0 1 unless defined $self->{'options'}
246 0 1 if @lines