| blib/lib/Data/Generator/FromDDL/CLI.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 15 | 24 | 62.5 |
| line | true | false | branch |
|---|---|---|---|
| 25 | 0 | 1 | if ($n) { } |
| 41 | 1 | 2 | $unit =~ /GB?/i ? : |
| 1 | 3 | $unit =~ /MB?/i ? : | |
| 3 | 4 | $unit =~ /KB?/i ? : | |
| 57 | 1 | 0 | if (@$ddl_files) { } |
| 61 | 0 | 1 | unless open my $fh, '<', $ddl_file |
| 78 | 1 | 0 | if ($out) { } |
| 79 | 0 | 1 | unless open $out_fh, '>', $out |
| 111 | 0 | 1 | unless GetOptions 'help|h', \$help, 'num|n=s', \$n, 'parser|p=s', \$parser, 'include|i=s', \$include, 'exclude|e=s', \$exclude, 'out|o=s', \$out, 'format|f=s', \$format, 'pretty', \$pretty, 'bytes_per_sql=s', \$bytes_per_sql |
| 123 | 0 | 1 | if $help |
| 130 | 0 | 1 | if $include and $exclude |
| 161 | 0 | 1 | if (my $err = $@) |