| blib/lib/OpenAPI/Generator/From/Definitions.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 13 | 22 | 59.0 |
| line | true | false | branch |
|---|---|---|---|
| 12 | 0 | 2 | if (eval { do { require YAML::XS } }) { } |
| 0 | 2 | elsif (eval { do { require YAML } }) { } | |
| 23 | 0 | 2 | if (eval { do { require JSON::XS } }) { } |
| 46 | 0 | 1 | unless (@files) |
| 53 | 0 | 3 | unless -r $file |
| 56 | 0 | 3 | unless open my $fh, '<', $file |
| 61 | 1 | 2 | if ($file =~ /\.json$/) { } |
| 74 | 0 | 1 | unless -f $_[1] or -d $_[1] |
| 75 | 0 | 1 | unless -r $_[1] |
| 80 | 0 | 1 | if -f $_[1] |
| 83 | 3 | 1 | if /\.(yml|yaml|json)$/ |