Branch Coverage

blib/lib/Mojolicious/Command/generate/resources.pm
Criterion Covered Total %
branch 38 46 82.6


line true false branch
247 10 6 $col->{'NULLABLE'} ? :
248 10 6 $col->{'COLUMN_SIZE'} ? :
249 4 12 if ($name eq 'id')
254 8 4 if ($col->{'TYPE_NAME'} =~ /char/i and $col->{'COLUMN_SIZE'} < 256) { }
2 4 elsif ($col->{'TYPE_NAME'} =~ /text/i or $col->{'TYPE_NAME'} =~ /char/i and $col->{'COLUMN_SIZE'} > 255) { }
270 2 0 if ($col->{'TYPE_NAME'} =~ /INT|FLOAT|DOUBLE|DECIMAL/i)
285 10 6 $col->{'NULLABLE'} ? :
286 10 6 $col->{'COLUMN_SIZE'} ? :
287 4 12 if ($name eq 'id')
293 6 6 $required ? :
296 8 4 if ($col->{'TYPE_NAME'} =~ /char/i and $col->{'COLUMN_SIZE'} < 256)
300 2 10 if ($col->{'TYPE_NAME'} =~ /INT|FLOAT|DOUBLE|DECIMAL/i)
354 6 10 unless ($col->{'NULLABLE'})
359 10 6 if ($type =~ /char|text|clob/i) { }
6 0 elsif ($type =~ /INT/i) { }
0 0 elsif ($type =~ /FLOAT|DOUBLE|DECIMAL|NUMBER/i) { }
360 8 2 $size ? :
362 8 2 if $size
366 2 4 $size ? :
368 2 4 if $size
375 0 0 $size ? :
380 0 0 if $size
385 4 12 if ($name eq 'id')