| blib/lib/OpenAPI/Generator/From/Definitions.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 15 | 24 | 62.5 |
| 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 | 1 | 1 | if ($src) |
| 50 | 0 | 1 | unless (@files) |
| 58 | 0 | 3 | unless -r $file |
| 61 | 0 | 3 | unless open my $fh, '<', $file |
| 66 | 1 | 2 | if ($file =~ /\.json$/) { } |
| 79 | 0 | 1 | unless -f $_[1] or -d $_[1] |
| 80 | 0 | 1 | unless -r $_[1] |
| 85 | 0 | 1 | if -f $_[1] |
| 88 | 3 | 1 | if /\.(yml|yaml|json)$/ |