Branch Coverage

blib/lib/Mojolicious/Command/openapi.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
34 8 0 !-t(STDIN) && select($r, undef, undef, 0) ? :
40 1 9 unless $client_args[0]
42 3 6 if ($client_args[0] =~ m[^/]u and not -e $client_args[0])
48 2 7 if $info
49 2 5 unless $op
50 0 5 unless $self->_client->can($op)
52 5 0 unless $ENV{'OPENAPI_NO_PROXY'}
58 0 2 if $verbose
62 2 3 $content ? :
63 3 2 if ($tx->error and $tx->error->{'message'} eq "Invalid input")
64 1 2 if $verbose
67 5 0 if not length $selector or $selector =~ m[^/]u
77 0 2 unless ($op)
84 1 1 if not $route->{'operation_id'} or $route->{'operation_id'} ne $op
88 1 1 unless $op_spec
94 0 5 unless defined(my $data = "Mojo::JSON::Pointer"->new(shift())->get(shift()))
95 1 4 unless ref $data eq "HASH" or ref $data eq "ARRAY"