Branch Coverage

blib/lib/Modern/OpenAPI/Generator/CLI.pm
Criterion Covered Total %
branch 18 36 50.0


line true false branch
20 1 7 unless @tokens
24 3 4 unless ($has_positive)
27 1 3 if (/^--no-client$/u)
28 1 2 if (/^--no-server$/u)
29 2 0 if (/^--no-ui$/u)
36 4 5 if (/^--client$/u) { }
0 5 elsif (/^--no-client$/u) { }
3 2 elsif (/^--server$/u) { }
0 2 elsif (/^--no-server$/u) { }
1 1 elsif (/^--ui$/u) { }
1 0 elsif (/^--no-ui$/u) { }
59 0 0 unless &GetOptionsFromArray(\@argv, "spec=s", \$spec, "output|o=s", \$output, "name|n=s", \$name, "sync!", \$sync, "async!", \$async, "skeleton", \$skeleton, "local-test", \$local_test, "force", \$force, "merge", \$merge, "signature=s\@", \@signatures, "help|h", \my $help)
74 0 0 if $help
79 0 0 unless defined $output and length $output
80 0 0 unless $spec
81 0 0 unless $name
83 0 0 unless $client or $server or $ui
87 0 0 if (@signatures == 1 and $signatures[0] =~ /,/u)