| bin/yto | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 20 | 26 | 76.9 |
| line | true | false | branch |
|---|---|---|---|
| 20 | 0 | 4 | if $opt{'help'} |
| 21 | 0 | 4 | if ($opt{'version'}) |
| 27 | 1 | 3 | unless $format |
| 28 | 1 | 2 | unless $class->format_modules($format) |
| 31 | 1 | 1 | unless @argv |
| 35 | 1 | 1 | if ($ARGV eq '-') { } |
| 40 | 0 | 1 | unless (open $fh, '<', $ARGV) |
| 50 | 2 | 10 | if ($buffer and $line =~ /^---/) |
| 58 | 2 | 0 | if ($buffer =~ /\S/) |
| 91 | 1 | 3 | unless $FORMAT_MODULES{$format} |
| 98 | 1 | 4 | unless ($f) |
| 101 | 1 | 0 | if (eval { do { use_module $module; 1 } }) |
| 112 | 0 | 4 | unless my $f = $class->can_format($format) |