| blib/lib/Mojolicious/Command/openapi.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 17 | 31 | 54.8 |
| line | l | !l | condition | |
|---|---|---|---|---|
| 102 | 0 | 2 | 0 | $_->{'operation_id'} and _say($_->{'operation_id'}) |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 11 | 0 | 0 | 0 | length $_ and say encode("UTF-8", $_) |
| 34 | 0 | 0 | 8 | !-t(STDIN) && select($r, undef, undef, 0) |
| 42 | 6 | 0 | 3 | $client_args[0] =~ m[^/]u and not -e $client_args[0] |
| 63 | 2 | 0 | 3 | $tx->error and $tx->error->{'message'} eq "Invalid input" |
| line | l | !l | condition |
|---|---|---|---|
| 9 | 0 | 3 | $ENV{'JSON_VALIDATOR_REPLACE'} // 1 |
| 38 | 1 | 9 | shift @args // "" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 34 | 2 | 0 | 8 | $content //= !-t(STDIN) && select($r, undef, undef, 0) ? join("", readline STDIN) : undef |
| 67 | 4 | 1 | 0 | not length $selector or $selector =~ m[^/]u |
| 84 | 0 | 1 | 1 | not $route->{'operation_id'} or $route->{'operation_id'} ne $op |
| 95 | 4 | 0 | 1 | ref $data eq "HASH" or ref $data eq "ARRAY" |